show full columns from table;
mysql 5.x 에서는 Collation (charset) 이 나온다 필드별로...
mysql> show full columns from g4_member;
+-------------------+--------------+-----------------+------+-----+---------------------+----------------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment |
+-------------------+--------------+-----------------+------+-----+---------------------+----------------+---------------------------------+---------+
| mb_no | int(11) | NULL | | PRI | NULL | auto_increment | select,insert,update,references | |
| mb_id | varchar(255) | utf8_general_ci | | UNI | | | select,insert,update,references | |
| mb_password | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_name | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_nick | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_nick_date | date | NULL | | | 0000-00-00 | | select,insert,update,references | |
| mb_email | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_homepage | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_password_q | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_password_a | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_level | tinyint(4) | NULL | | | 0 | | select,insert,update,references | |
| mb_jumin | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_sex | char(1) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_birth | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_tel | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_hp | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_zip1 | varchar(3) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_zip2 | varchar(3) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_addr1 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_addr2 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_signature | text | utf8_general_ci | | | | | select,insert,update,references | |
| mb_recommend | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_point | int(11) | NULL | | | 0 | | select,insert,update,references | |
| mb_today_login | datetime | NULL | | MUL | 0000-00-00 00:00:00 | | select,insert,update,references | |
| mb_login_ip | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_datetime | datetime | NULL | | MUL | 0000-00-00 00:00:00 | | select,insert,update,references | |
| mb_ip | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_leave_date | varchar(8) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_intercept_date | varchar(8) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_email_certify | datetime | NULL | | | 0000-00-00 00:00:00 | | select,insert,update,references | |
| mb_memo | text | utf8_general_ci | | | | | select,insert,update,references | |
| mb_mailling | tinyint(4) | NULL | | | 0 | | select,insert,update,references | |
| mb_sms | tinyint(4) | NULL | | | 0 | | select,insert,update,references | |
| mb_open | tinyint(4) | NULL | | | 0 | | select,insert,update,references | |
| mb_open_date | date | NULL | | | 0000-00-00 | | select,insert,update,references | |
| mb_profile | text | utf8_general_ci | | | | | select,insert,update,references | |
| mb_memo_call | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_1 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_2 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_3 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_4 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_5 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_6 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_7 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_8 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_9 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
| mb_10 | varchar(255) | utf8_general_ci | | | | | select,insert,update,references | |
+-------------------+--------------+-----------------+------+-----+---------------------+----------------+---------------------------------+---------+
47 rows in set (0.00 sec)
mysql>
댓글 1개
$result= sql_query("show full columns from g4_member");
while(($rows = mysql_fetch_array($result)) == true){
eco $rows['field'].'<br>';
}
가능할까요??? ㅋㅋ;;;
작업하고 나서 디비스키마 달래거나, 디비구조도 달래면 항상 엑셀로 작업하는데 하루죙일 걸리는데,
이거는 디비구조도 나타낼때 좋겠네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3130 | 14년 전 | 1462 | ||
| 3129 | 14년 전 | 1160 | ||
| 3128 | 14년 전 | 1035 | ||
| 3127 |
조이온라인
|
14년 전 | 997 | |
| 3126 |
마케팅메지션
|
14년 전 | 1366 | |
| 3125 | 14년 전 | 970 | ||
| 3124 | 14년 전 | 1346 | ||
| 3123 |
마케팅메지션
|
14년 전 | 1058 | |
| 3122 | 14년 전 | 907 | ||
| 3121 | 14년 전 | 1156 | ||
| 3120 | 14년 전 | 1279 | ||
| 3119 | 14년 전 | 1010 | ||
| 3118 | 14년 전 | 1521 | ||
| 3117 | 14년 전 | 1231 | ||
| 3116 | 14년 전 | 1561 | ||
| 3115 |
windday
|
14년 전 | 1251 | |
| 3114 | 14년 전 | 1167 | ||
| 3113 | 14년 전 | 1244 | ||
| 3112 | 14년 전 | 3714 | ||
| 3111 | 14년 전 | 1053 | ||
| 3110 | 14년 전 | 2239 | ||
| 3109 | 14년 전 | 3702 | ||
| 3108 | 14년 전 | 1655 | ||
| 3107 | 14년 전 | 1593 | ||
| 3106 | 14년 전 | 2288 | ||
| 3105 | 14년 전 | 1467 | ||
| 3104 | 14년 전 | 1473 | ||
| 3103 | 14년 전 | 1697 | ||
| 3102 | 14년 전 | 1182 | ||
| 3101 | 14년 전 | 2023 | ||
| 3100 | 14년 전 | 1541 | ||
| 3099 | 14년 전 | 1156 | ||
| 3098 | 14년 전 | 1304 | ||
| 3097 | 14년 전 | 1082 | ||
| 3096 | 14년 전 | 1544 | ||
| 3095 | 14년 전 | 927 | ||
| 3094 | 14년 전 | 2138 | ||
| 3093 | 14년 전 | 1138 | ||
| 3092 | 14년 전 | 978 | ||
| 3091 | 14년 전 | 1436 | ||
| 3090 | 14년 전 | 1427 | ||
| 3089 | 14년 전 | 1373 | ||
| 3088 | 14년 전 | 1524 | ||
| 3087 | 14년 전 | 1190 | ||
| 3086 | 14년 전 | 1133 | ||
| 3085 | 14년 전 | 1755 | ||
| 3084 | 14년 전 | 1288 | ||
| 3083 | 14년 전 | 930 | ||
| 3082 |
|
14년 전 | 1109 | |
| 3081 | 14년 전 | 3183 | ||
| 3080 |
|
14년 전 | 1241 | |
| 3079 | 14년 전 | 944 | ||
| 3078 |
마케팅메지션
|
14년 전 | 1024 | |
| 3077 | 14년 전 | 819 | ||
| 3076 | 14년 전 | 883 | ||
| 3075 | 14년 전 | 1371 | ||
| 3074 | 14년 전 | 1067 | ||
| 3073 | 14년 전 | 911 | ||
| 3072 | 14년 전 | 1166 | ||
| 3071 | 14년 전 | 758 | ||
| 3070 | 14년 전 | 932 | ||
| 3069 | 14년 전 | 1106 | ||
| 3068 | 14년 전 | 970 | ||
| 3067 | 14년 전 | 883 | ||
| 3066 | 14년 전 | 943 | ||
| 3065 | 14년 전 | 1110 | ||
| 3064 |
하모니칼수
|
14년 전 | 1126 | |
| 3063 |
마케팅메지션
|
14년 전 | 1301 | |
| 3062 | 14년 전 | 1125 | ||
| 3061 | 14년 전 | 669 | ||
| 3060 |
|
14년 전 | 811 | |
| 3059 | 14년 전 | 1153 | ||
| 3058 | 14년 전 | 1233 | ||
| 3057 | 14년 전 | 667 | ||
| 3056 | 14년 전 | 2050 | ||
| 3055 | 14년 전 | 1476 | ||
| 3054 | 14년 전 | 1045 | ||
| 3053 | 14년 전 | 1007 | ||
| 3052 |
|
14년 전 | 1165 | |
| 3051 | 14년 전 | 1914 | ||
| 3050 |
떠돌이이병
|
14년 전 | 1178 | |
| 3049 | 14년 전 | 1115 | ||
| 3048 | 14년 전 | 1153 | ||
| 3047 | 14년 전 | 1075 | ||
| 3046 | 14년 전 | 1131 | ||
| 3045 |
마케팅메지션
|
14년 전 | 869 | |
| 3044 | 14년 전 | 1458 | ||
| 3043 | 14년 전 | 1007 | ||
| 3042 | 14년 전 | 857 | ||
| 3041 | 14년 전 | 2825 | ||
| 3040 | 14년 전 | 617 | ||
| 3039 | 14년 전 | 1067 | ||
| 3038 | 14년 전 | 1045 | ||
| 3037 | 14년 전 | 1013 | ||
| 3036 | 14년 전 | 859 | ||
| 3035 | 14년 전 | 1190 | ||
| 3034 |
마케팅메지션
|
14년 전 | 1239 | |
| 3033 | 14년 전 | 887 | ||
| 3032 | 14년 전 | 1293 | ||
| 3031 |
마케팅메지션
|
14년 전 | 919 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기