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 ...