表的结构信息,如表中的字段名、字段的数据类型、字段长度、可否空值、主键字段等信息 select * from information_schema.columns where table_name='test'