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>';
}
가능할까요??? ㅋㅋ;;;
작업하고 나서 디비스키마 달래거나, 디비구조도 달래면 항상 엑셀로 작업하는데 하루죙일 걸리는데,
이거는 디비구조도 나타낼때 좋겠네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2930 |
마케팅메지션
|
14년 전 | 960 | |
| 2929 |
마케팅메지션
|
14년 전 | 921 | |
| 2928 | 14년 전 | 1049 | ||
| 2927 | 14년 전 | 850 | ||
| 2926 | 14년 전 | 849 | ||
| 2925 | 14년 전 | 733 | ||
| 2924 | 14년 전 | 4484 | ||
| 2923 |
VBASP
|
14년 전 | 947 | |
| 2922 |
프리랜서개발자
|
14년 전 | 659 | |
| 2921 | 14년 전 | 1073 | ||
| 2920 | 14년 전 | 1040 | ||
| 2919 | 14년 전 | 1170 | ||
| 2918 | 14년 전 | 845 | ||
| 2917 | 14년 전 | 973 | ||
| 2916 |
마케팅메지션
|
14년 전 | 959 | |
| 2915 | 14년 전 | 914 | ||
| 2914 |
|
14년 전 | 802 | |
| 2913 | 14년 전 | 855 | ||
| 2912 | 14년 전 | 982 | ||
| 2911 |
|
14년 전 | 791 | |
| 2910 |
|
14년 전 | 795 | |
| 2909 |
|
14년 전 | 884 | |
| 2908 | 14년 전 | 803 | ||
| 2907 | 14년 전 | 779 | ||
| 2906 | 14년 전 | 798 | ||
| 2905 | 14년 전 | 788 | ||
| 2904 | 14년 전 | 806 | ||
| 2903 | 14년 전 | 751 | ||
| 2902 | 14년 전 | 764 | ||
| 2901 | 14년 전 | 736 | ||
| 2900 | 14년 전 | 963 | ||
| 2899 | 14년 전 | 894 | ||
| 2898 | 14년 전 | 754 | ||
| 2897 |
|
14년 전 | 774 | |
| 2896 | 14년 전 | 701 | ||
| 2895 |
|
14년 전 | 1873 | |
| 2894 | 14년 전 | 919 | ||
| 2893 | 14년 전 | 718 | ||
| 2892 | 14년 전 | 865 | ||
| 2891 | 14년 전 | 761 | ||
| 2890 |
|
14년 전 | 896 | |
| 2889 | 14년 전 | 761 | ||
| 2888 |
|
14년 전 | 857 | |
| 2887 | 14년 전 | 820 | ||
| 2886 | 14년 전 | 742 | ||
| 2885 | 14년 전 | 905 | ||
| 2884 | 14년 전 | 697 | ||
| 2883 |
마케팅메지션
|
14년 전 | 840 | |
| 2882 |
마케팅메지션
|
14년 전 | 897 | |
| 2881 | 14년 전 | 1185 | ||
| 2880 |
마케팅메지션
|
14년 전 | 775 | |
| 2879 | 14년 전 | 827 | ||
| 2878 | 14년 전 | 855 | ||
| 2877 |
라디오켓츠
|
14년 전 | 1434 | |
| 2876 |
|
14년 전 | 800 | |
| 2875 | 14년 전 | 951 | ||
| 2874 | 14년 전 | 1361 | ||
| 2873 | 14년 전 | 820 | ||
| 2872 |
|
14년 전 | 827 | |
| 2871 |
|
14년 전 | 717 | |
| 2870 | 14년 전 | 767 | ||
| 2869 |
마케팅메지션
|
14년 전 | 754 | |
| 2868 | 14년 전 | 1931 | ||
| 2867 |
|
14년 전 | 857 | |
| 2866 | 14년 전 | 898 | ||
| 2865 | 14년 전 | 818 | ||
| 2864 | 14년 전 | 1293 | ||
| 2863 | 14년 전 | 1206 | ||
| 2862 |
|
14년 전 | 842 | |
| 2861 | 14년 전 | 776 | ||
| 2860 | 14년 전 | 1063 | ||
| 2859 |
|
14년 전 | 648 | |
| 2858 |
|
14년 전 | 734 | |
| 2857 |
|
14년 전 | 791 | |
| 2856 |
마케팅메지션
|
14년 전 | 756 | |
| 2855 |
마케팅메지션
|
14년 전 | 708 | |
| 2854 | 14년 전 | 964 | ||
| 2853 | 14년 전 | 794 | ||
| 2852 |
|
14년 전 | 763 | |
| 2851 | 14년 전 | 711 | ||
| 2850 | 14년 전 | 799 | ||
| 2849 | 14년 전 | 2439 | ||
| 2848 |
Mentor
|
14년 전 | 789 | |
| 2847 |
마케팅메지션
|
14년 전 | 765 | |
| 2846 | 14년 전 | 770 | ||
| 2845 | 14년 전 | 752 | ||
| 2844 | 14년 전 | 967 | ||
| 2843 |
마케팅메지션
|
14년 전 | 698 | |
| 2842 | 14년 전 | 1035 | ||
| 2841 | 14년 전 | 823 | ||
| 2840 | 14년 전 | 834 | ||
| 2839 | 14년 전 | 1134 | ||
| 2838 | 14년 전 | 724 | ||
| 2837 | 14년 전 | 762 | ||
| 2836 | 14년 전 | 655 | ||
| 2835 |
마케팅메지션
|
14년 전 | 838 | |
| 2834 |
마케팅메지션
|
14년 전 | 660 | |
| 2833 |
|
14년 전 | 1115 | |
| 2832 |
|
14년 전 | 791 | |
| 2831 |
Mentor
|
14년 전 | 763 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기