SELECT table_name name,TABLE_COMMENT value FROM INFORMATION_SCHEMA.TABLES WHERE table_type='base table' and table_schema = '数据库名' order by table_name asc 二、查询字段信息(字段ID/字段名/数据类型/...
飞翔Study的博客PostgreSql ...select count (*) from information_schema.tables WHERE table_schema = 'table_schema' and table_name = 'table_name';...select * from information_schema.tables WHERE table_schem
获取所有表名: SELECT Name FROM DatabaseName..SysObjects Where XType=’U’ ORDER BY Name XType=’U’:表示所有用户表; XType=’S’:表示所有系统表; 3.获取所有字段名: SELECT Name FROM SysColumns WHERE id=...