数据库方面

来源:互联网 发布:magicplus是什么软件 编辑:程序博客网 时间:2024/05/19 23:58

sql如何查某个表某个字段的数据类型?

select column_name,data_type from information_schema.columns where table_name = 'table_1' and column_name='A'

如果把 and column_name='A' 去掉,则会显示表的所有字段的数据类型