메뉴 건너뛰기

조회 수 5534 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

① 테이블 구조 정보

show create table TABLE_NAME;


② MySQL 서버 호스트에 있는 데이터베이스를 나열

show databases;


③ 서버 상태 정보

show status;


④ 테이블 정보 확인

show table status;


[예]

array(36) {
 [0]=> string(9) "acc_visit" ["Name"]=> string(9) "acc_visit"
 [1]=> string(6) "MyISAM" ["Engine"]=> string(6) "MyISAM"
 [2]=> string(2) "10" ["Version"]=> string(2) "10"
 [3]=> string(7) "Dynamic" ["Row_format"]=> string(7) "Dynamic"
 [4]=> string(1) "8" ["Rows"]=> string(1) "8"
 [5]=> string(2) "41" ["Avg_row_length"]=> string(2) "41"
 [6]=> string(3) "332" ["Data_length"]=> string(3) "332"
 [7]=> string(15) "281474976710655" ["Max_data_length"]=> string(15) "281474976710655"
 [8]=> string(4) "2048" ["Index_length"]=> string(4) "2048"
 [9]=> string(1) "0" ["Data_free"]=> string(1) "0"
 [10]=> string(2) "45" ["Auto_increment"]=> string(2) "45"
 [11]=> string(19) "2011-06-09 00:49:51" ["Create_time"]=> string(19) "2011-06-09 00:49:51"
 [12]=> string(19) "2011-06-09 00:49:51" ["Update_time"]=> string(19) "2011-06-09 00:49:51"
 [13]=> NULL ["Check_time"]=> NULL
 [14]=> string(15) "euckr_korean_ci" ["Collation"]=> string(15) "euckr_korean_ci"
 [15]=> NULL ["Checksum"]=> NULL
 [16]=> string(0) "" ["Create_options"]=> string(0) ""
 [17]=> string(0) "" ["Comment"]=> string(0) ""
}


  1. No Image 22Dec
    by
    2016/12/22 Views 11523 

    MySQL INSERT 성능 향상

  2. MySql 의 Trigger(트리거) 로 정보 업데이트

  3. No Image 16Nov
    by
    2017/11/16 Views 8868 

    특정 COLUMN을 제외하고 SELECT/INSERT하는 방법

  4. MySql 윈도우에서 DB dump 백업과 복구하기

  5. No Image 19Dec
    by
    2015/12/19 Views 8360 

    다양한 단위의 시간차 구하기

  6. No Image 27Feb
    by
    2014/02/27 Views 8022 

    MySQL 최적화 방법 설명

  7. MySQL 대용량 DBMS 개선 사례

  8. No Image 23Dec
    by
    2016/12/23 Views 7478 

    테이블 체크, 백업

  9. No Image 07Aug
    by
    2015/08/07 Views 7384 

    MySQL/MariaDB 백업 & 복원 - mysqldump

  10. No Image 12Apr
    by
    2017/04/12 Views 7316 

    실수로 삭제한 mysql DB 복구방법

  11. MySql 에서 외래키(FK) 설정하는 방법과 Toad 에서 확인하기

  12. No Image 27Feb
    by
    2014/02/27 Views 6782 

    MySQL Replication 설정(Master-Slave, Maste

  13. No Image 29Aug
    by
    2016/08/29 Views 6767 

    DB의 모든 테이블을 삭제하는 쿼리

  14. No Image 30Aug
    by
    2016/08/30 Views 6606 

    컬럼에 포함된 특정문자열을 검색해서 그 문자로 또 다른 테이블검색하기

  15. MySQL 에서 NULL 값 처리

  16. No Image 27Feb
    by
    2014/02/27 Views 6254 

    MySql 문자열 합치기

  17. No Image 23Dec
    by
    2016/12/23 Views 6085 

    필드 변경, 추가, 삭제

  18. No Image 12Apr
    by
    2017/04/12 Views 6053 

    MySQL 쿼리 결과 값 세로로 보기

  19. SQL 고급

  20. No Image 23Dec
    by
    2016/12/23 Views 6012 

    Create Procedure

Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved