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>';
}
가능할까요??? ㅋㅋ;;;
작업하고 나서 디비스키마 달래거나, 디비구조도 달래면 항상 엑셀로 작업하는데 하루죙일 걸리는데,
이거는 디비구조도 나타낼때 좋겠네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2330 | 16년 전 | 5069 | ||
| 2329 | 16년 전 | 2304 | ||
| 2328 | 16년 전 | 3404 | ||
| 2327 | 16년 전 | 2639 | ||
| 2326 | 16년 전 | 1557 | ||
| 2325 | 16년 전 | 5349 | ||
| 2324 | 16년 전 | 2470 | ||
| 2323 | 16년 전 | 5961 | ||
| 2322 | 16년 전 | 1938 | ||
| 2321 | 16년 전 | 4019 | ||
| 2320 | 16년 전 | 3030 | ||
| 2319 |
|
16년 전 | 2210 | |
| 2318 |
데니크레인
|
16년 전 | 2232 | |
| 2317 | 16년 전 | 4411 | ||
| 2316 | 16년 전 | 3294 | ||
| 2315 | 16년 전 | 2833 | ||
| 2314 | 16년 전 | 2960 | ||
| 2313 | 16년 전 | 2076 | ||
| 2312 | 16년 전 | 1766 | ||
| 2311 | 16년 전 | 1676 | ||
| 2310 | 16년 전 | 1396 | ||
| 2309 | 16년 전 | 1666 | ||
| 2308 | 16년 전 | 1902 | ||
| 2307 | 16년 전 | 1599 | ||
| 2306 |
|
16년 전 | 4849 | |
| 2305 | 16년 전 | 3827 | ||
| 2304 | 16년 전 | 1786 | ||
| 2303 | 16년 전 | 1533 | ||
| 2302 | 16년 전 | 2268 | ||
| 2301 | 16년 전 | 4530 | ||
| 2300 | 16년 전 | 3544 | ||
| 2299 | 16년 전 | 2576 | ||
| 2298 | 16년 전 | 4335 | ||
| 2297 | 16년 전 | 3207 | ||
| 2296 | 16년 전 | 1352 | ||
| 2295 |
|
16년 전 | 1378 | |
| 2294 |
|
16년 전 | 2039 | |
| 2293 | 16년 전 | 1886 | ||
| 2292 | 16년 전 | 2564 | ||
| 2291 | 16년 전 | 2233 | ||
| 2290 | 16년 전 | 1371 | ||
| 2289 | 16년 전 | 4392 | ||
| 2288 | 16년 전 | 1477 | ||
| 2287 | 16년 전 | 1781 | ||
| 2286 | 16년 전 | 2199 | ||
| 2285 |
|
16년 전 | 3833 | |
| 2284 |
|
16년 전 | 2729 | |
| 2283 |
|
16년 전 | 1486 | |
| 2282 | 16년 전 | 4011 | ||
| 2281 |
|
16년 전 | 1397 | |
| 2280 | 16년 전 | 1578 | ||
| 2279 | 16년 전 | 1234 | ||
| 2278 | 16년 전 | 1712 | ||
| 2277 | 16년 전 | 1612 | ||
| 2276 | 16년 전 | 1625 | ||
| 2275 | 16년 전 | 1424 | ||
| 2274 | 16년 전 | 2179 | ||
| 2273 | 16년 전 | 1819 | ||
| 2272 |
|
16년 전 | 1965 | |
| 2271 | 16년 전 | 2177 | ||
| 2270 |
a1system
|
16년 전 | 1472 | |
| 2269 | 16년 전 | 2306 | ||
| 2268 | 16년 전 | 2259 | ||
| 2267 | 16년 전 | 4533 | ||
| 2266 |
|
16년 전 | 1295 | |
| 2265 | 16년 전 | 1051 | ||
| 2264 |
잠자리똥꾸멍
|
16년 전 | 2009 | |
| 2263 |
태양의서쪽
|
16년 전 | 1972 | |
| 2262 |
태양의서쪽
|
16년 전 | 1516 | |
| 2261 |
태양의서쪽
|
16년 전 | 2041 | |
| 2260 |
|
16년 전 | 2270 | |
| 2259 | 16년 전 | 1386 | ||
| 2258 | 16년 전 | 1738 | ||
| 2257 | 16년 전 | 1921 | ||
| 2256 | 16년 전 | 1013 | ||
| 2255 | 16년 전 | 1689 | ||
| 2254 | 16년 전 | 1405 | ||
| 2253 | 16년 전 | 1913 | ||
| 2252 |
freedays
|
16년 전 | 1326 | |
| 2251 | 16년 전 | 2200 | ||
| 2250 | 16년 전 | 1879 | ||
| 2249 | 16년 전 | 5866 | ||
| 2248 | 16년 전 | 1912 | ||
| 2247 | 16년 전 | 3685 | ||
| 2246 | 16년 전 | 1467 | ||
| 2245 |
|
16년 전 | 1754 | |
| 2244 |
|
16년 전 | 2070 | |
| 2243 | 16년 전 | 2609 | ||
| 2242 | 16년 전 | 2306 | ||
| 2241 | 16년 전 | 2755 | ||
| 2240 | 16년 전 | 2991 | ||
| 2239 | 16년 전 | 3016 | ||
| 2238 |
|
16년 전 | 1820 | |
| 2237 |
|
16년 전 | 1540 | |
| 2236 |
|
16년 전 | 1416 | |
| 2235 | 16년 전 | 1725 | ||
| 2234 | 16년 전 | 1205 | ||
| 2233 | 16년 전 | 1960 | ||
| 2232 |
|
16년 전 | 1731 | |
| 2231 | 16년 전 | 1606 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기