select COLUMN_NAME,column_comment from INFORMATION_SCHEMA.Columns where table_name='表名' a ...
用easyui datagrid 想动态生成列,在服务器端运行,由于字段用英文,所以需要查询相应的注释作为datagrid的表头 select COLUMN NAME,column comment from INFORMATION SCHEMA.Columns where table name 表名 and table schema 数据库名 ...
2013-01-23 13:03 0 22744 推荐指数:
select COLUMN_NAME,column_comment from INFORMATION_SCHEMA.Columns where table_name='表名' a ...
select * from (select * from information_schema.COLUMNS where table_schema = '数据库名') temp where column_name = '字段名' ...
#sql查询字段名,注释操作拼接 ...
select column_name,column_comment,data_type from information_schema.columns where table_name='查询表名称' and table_schema='数据库名称' 通过以上语句可以查到数据库表 ...
select column_name,column_comment,data_type from information_schema.columns where table_name='查询表名称' and table_schema='数据库名称' 通过以上语句可以查到数据库表 ...
查询数据库中所有表名 select table_name from information_schema.tables where table_schema='csdb' and table_type='base table'; 查询指定数据库中指定表的所有字段名 select ...