1、显示表的结构 table代表数据表的名称
desc 表名;
show columns from 表名;
describe 表名;
show create table 表名;//SQL命令形式显示
use information_schema
select * from columns where table_name='表名';
顺便记下:
show databases;
use 数据库名;
show tables;
show columns from 表名;
describe 表名;
show create table 表名;//SQL命令形式显示
use information_schema
select * from columns where table_name='表名';
顺便记下:
show databases;
use 数据库名;
show tables;
2、将时间格式化成字符串
浙公网安备 33010602011771号