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>';
}
가능할까요??? ㅋㅋ;;;
작업하고 나서 디비스키마 달래거나, 디비구조도 달래면 항상 엑셀로 작업하는데 하루죙일 걸리는데,
이거는 디비구조도 나타낼때 좋겠네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2730 | 15년 전 | 653 | ||
| 2729 | 15년 전 | 1401 | ||
| 2728 |
|
15년 전 | 932 | |
| 2727 |
용다섯마리
|
15년 전 | 689 | |
| 2726 |
니콜크더만
|
15년 전 | 774 | |
| 2725 |
Insungbyun
|
15년 전 | 836 | |
| 2724 | 15년 전 | 1228 | ||
| 2723 | 15년 전 | 725 | ||
| 2722 | 15년 전 | 739 | ||
| 2721 | 15년 전 | 959 | ||
| 2720 | 15년 전 | 687 | ||
| 2719 |
|
15년 전 | 1428 | |
| 2718 | 15년 전 | 1052 | ||
| 2717 |
디이자이너
|
15년 전 | 2872 | |
| 2716 |
|
15년 전 | 1363 | |
| 2715 | 15년 전 | 656 | ||
| 2714 |
고추장불고기
|
15년 전 | 622 | |
| 2713 | 15년 전 | 787 | ||
| 2712 | 15년 전 | 1264 | ||
| 2711 | 15년 전 | 1189 | ||
| 2710 | 15년 전 | 668 | ||
| 2709 | 15년 전 | 793 | ||
| 2708 |
TWM소프트
|
15년 전 | 981 | |
| 2707 |
|
15년 전 | 1216 | |
| 2706 |
|
15년 전 | 1017 | |
| 2705 | 15년 전 | 998 | ||
| 2704 | 15년 전 | 1190 | ||
| 2703 |
|
15년 전 | 667 | |
| 2702 |
|
15년 전 | 654 | |
| 2701 | 15년 전 | 1059 | ||
| 2700 | 15년 전 | 646 | ||
| 2699 | 15년 전 | 1747 | ||
| 2698 | 15년 전 | 2255 | ||
| 2697 |
|
15년 전 | 822 | |
| 2696 | 15년 전 | 819 | ||
| 2695 | 15년 전 | 1483 | ||
| 2694 |
|
15년 전 | 887 | |
| 2693 | 15년 전 | 978 | ||
| 2692 | 15년 전 | 1388 | ||
| 2691 |
Homepix
|
15년 전 | 1550 | |
| 2690 | 15년 전 | 1651 | ||
| 2689 | 15년 전 | 1090 | ||
| 2688 |
sooram
|
15년 전 | 1758 | |
| 2687 |
terrorboys
|
15년 전 | 1569 | |
| 2686 |
진정한승리
|
15년 전 | 801 | |
| 2685 |
|
15년 전 | 1794 | |
| 2684 |
진정한승리
|
15년 전 | 923 | |
| 2683 |
dannykim
|
15년 전 | 781 | |
| 2682 | 15년 전 | 827 | ||
| 2681 | 15년 전 | 777 | ||
| 2680 | 15년 전 | 947 | ||
| 2679 | 15년 전 | 963 | ||
| 2678 | 15년 전 | 1173 | ||
| 2677 |
|
15년 전 | 3185 | |
| 2676 | 15년 전 | 1755 | ||
| 2675 | 15년 전 | 903 | ||
| 2674 | 15년 전 | 1602 | ||
| 2673 | 15년 전 | 772 | ||
| 2672 | 15년 전 | 909 | ||
| 2671 |
다케미카코
|
15년 전 | 1868 | |
| 2670 | 15년 전 | 1816 | ||
| 2669 | 15년 전 | 858 | ||
| 2668 |
terrorboys
|
15년 전 | 1115 | |
| 2667 | 15년 전 | 1069 | ||
| 2666 | 15년 전 | 1036 | ||
| 2665 | 15년 전 | 1222 | ||
| 2664 | 15년 전 | 954 | ||
| 2663 | 15년 전 | 978 | ||
| 2662 | 15년 전 | 900 | ||
| 2661 | 15년 전 | 1034 | ||
| 2660 | 15년 전 | 946 | ||
| 2659 | 15년 전 | 1543 | ||
| 2658 | 15년 전 | 783 | ||
| 2657 | 15년 전 | 754 | ||
| 2656 | 15년 전 | 1392 | ||
| 2655 | 15년 전 | 1292 | ||
| 2654 | 15년 전 | 1234 | ||
| 2653 | 15년 전 | 805 | ||
| 2652 | 15년 전 | 1595 | ||
| 2651 | 15년 전 | 978 | ||
| 2650 | 15년 전 | 1634 | ||
| 2649 |
windday
|
15년 전 | 1988 | |
| 2648 | 15년 전 | 1416 | ||
| 2647 | 15년 전 | 7609 | ||
| 2646 | 15년 전 | 1036 | ||
| 2645 | 15년 전 | 1261 | ||
| 2644 | 15년 전 | 990 | ||
| 2643 | 15년 전 | 1203 | ||
| 2642 | 15년 전 | 978 | ||
| 2641 | 15년 전 | 1193 | ||
| 2640 |
프리랜서개발자
|
15년 전 | 924 | |
| 2639 | 15년 전 | 2014 | ||
| 2638 | 15년 전 | 1028 | ||
| 2637 | 15년 전 | 934 | ||
| 2636 | 15년 전 | 1423 | ||
| 2635 | 15년 전 | 1315 | ||
| 2634 | 15년 전 | 1044 | ||
| 2633 | 15년 전 | 916 | ||
| 2632 | 15년 전 | 951 | ||
| 2631 | 15년 전 | 1233 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기