MySQL查看表结构
MySQL上面查看表结构的方式:
1. desc table_name; --describe table_name
2. show columns from table_name;
3. show create table table_name;
4.
use information_schema;
select * from columns where table_name = 'table_name';
--呵呵。。。不少吧,第1种最简单了,需要比较详细的信息选第3种或第4种比较合适~
一点都不好用 怎么回事
挺好用的啊
你太强了,呵呵~
哈哈,前三种我居然都知道啊! 我是不是太厉害了,3/4我都知道呢! 学习第四种。