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>';
}
가능할까요??? ㅋㅋ;;;
작업하고 나서 디비스키마 달래거나, 디비구조도 달래면 항상 엑셀로 작업하는데 하루죙일 걸리는데,
이거는 디비구조도 나타낼때 좋겠네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2830 | 15년 전 | 982 | ||
| 2829 | 15년 전 | 684 | ||
| 2828 | 15년 전 | 721 | ||
| 2827 | 15년 전 | 652 | ||
| 2826 | 15년 전 | 850 | ||
| 2825 |
|
15년 전 | 668 | |
| 2824 | 15년 전 | 799 | ||
| 2823 | 15년 전 | 738 | ||
| 2822 | 15년 전 | 1015 | ||
| 2821 | 15년 전 | 647 | ||
| 2820 | 15년 전 | 839 | ||
| 2819 | 15년 전 | 768 | ||
| 2818 | 15년 전 | 1096 | ||
| 2817 |
Lemios
|
15년 전 | 1320 | |
| 2816 | 15년 전 | 749 | ||
| 2815 | 15년 전 | 869 | ||
| 2814 | 15년 전 | 759 | ||
| 2813 |
|
15년 전 | 906 | |
| 2812 | 15년 전 | 762 | ||
| 2811 |
|
15년 전 | 929 | |
| 2810 | 15년 전 | 823 | ||
| 2809 | 15년 전 | 836 | ||
| 2808 |
|
15년 전 | 758 | |
| 2807 | 15년 전 | 3715 | ||
| 2806 | 15년 전 | 6805 | ||
| 2805 | 15년 전 | 939 | ||
| 2804 |
MKCstrong
|
15년 전 | 727 | |
| 2803 | 15년 전 | 1086 | ||
| 2802 | 15년 전 | 889 | ||
| 2801 | 15년 전 | 929 | ||
| 2800 | 15년 전 | 792 | ||
| 2799 | 15년 전 | 682 | ||
| 2798 | 15년 전 | 1116 | ||
| 2797 |
|
15년 전 | 759 | |
| 2796 | 15년 전 | 1316 | ||
| 2795 |
|
15년 전 | 1095 | |
| 2794 | 15년 전 | 912 | ||
| 2793 | 15년 전 | 868 | ||
| 2792 |
|
15년 전 | 732 | |
| 2791 | 15년 전 | 1060 | ||
| 2790 | 15년 전 | 761 | ||
| 2789 |
진정한승리
|
15년 전 | 2857 | |
| 2788 | 15년 전 | 1069 | ||
| 2787 | 15년 전 | 996 | ||
| 2786 | 15년 전 | 1135 | ||
| 2785 | 15년 전 | 734 | ||
| 2784 | 15년 전 | 1007 | ||
| 2783 | 15년 전 | 1203 | ||
| 2782 | 15년 전 | 879 | ||
| 2781 | 15년 전 | 1646 | ||
| 2780 | 15년 전 | 679 | ||
| 2779 |
|
15년 전 | 855 | |
| 2778 | 15년 전 | 1165 | ||
| 2777 |
|
15년 전 | 926 | |
| 2776 | 15년 전 | 662 | ||
| 2775 |
|
15년 전 | 2901 | |
| 2774 |
|
15년 전 | 1071 | |
| 2773 |
|
15년 전 | 2063 | |
| 2772 | 15년 전 | 1949 | ||
| 2771 | 15년 전 | 1009 | ||
| 2770 |
RedRiverFisher
|
15년 전 | 2249 | |
| 2769 | 15년 전 | 810 | ||
| 2768 | 15년 전 | 1338 | ||
| 2767 | 15년 전 | 2530 | ||
| 2766 |
용다섯마리
|
15년 전 | 794 | |
| 2765 | 15년 전 | 1323 | ||
| 2764 | 15년 전 | 1538 | ||
| 2763 | 15년 전 | 907 | ||
| 2762 | 15년 전 | 1221 | ||
| 2761 | 15년 전 | 765 | ||
| 2760 |
|
15년 전 | 1999 | |
| 2759 | 15년 전 | 1393 | ||
| 2758 | 15년 전 | 877 | ||
| 2757 | 15년 전 | 559 | ||
| 2756 | 15년 전 | 667 | ||
| 2755 |
|
15년 전 | 1104 | |
| 2754 | 15년 전 | 1178 | ||
| 2753 | 15년 전 | 597 | ||
| 2752 | 15년 전 | 490 | ||
| 2751 | 15년 전 | 746 | ||
| 2750 | 15년 전 | 695 | ||
| 2749 |
원시인교주
|
15년 전 | 1717 | |
| 2748 | 15년 전 | 567 | ||
| 2747 | 15년 전 | 634 | ||
| 2746 | 15년 전 | 602 | ||
| 2745 | 15년 전 | 863 | ||
| 2744 |
원시인교주
|
15년 전 | 1699 | |
| 2743 | 15년 전 | 1641 | ||
| 2742 |
원시인교주
|
15년 전 | 14073 | |
| 2741 |
원시인교주
|
15년 전 | 3174 | |
| 2740 |
|
15년 전 | 741 | |
| 2739 | 15년 전 | 662 | ||
| 2738 | 15년 전 | 791 | ||
| 2737 | 15년 전 | 686 | ||
| 2736 | 15년 전 | 695 | ||
| 2735 | 15년 전 | 11334 | ||
| 2734 | 15년 전 | 1187 | ||
| 2733 | 15년 전 | 1041 | ||
| 2732 | 15년 전 | 1382 | ||
| 2731 | 15년 전 | 1324 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기