如何获得Sybase中的数据库、表名、字段的SQL语句
1.获得Sybase中所有数据库: select dbid,name from master..sysdatabases
2.获得指定数据库中的表列表:select name from 数据库..sysobjects where type='U' order by name
3.获得指定数据库中的视图列表:select name from 数据库..sysobjects where type='V' order by name
4.获得指定数据库中的存储过程列表:select name from 数据库..sysobjects where type='P' order by name
5.获得指定表&视图中字段或参数:
SELECT a.name, b.name
FROM syscolumns a
LEFT JOIN systypes b ON a.usertype = b.usertype
INNER JOIN sysobjects d ON a.id = d.id AND d.name <> 'dtproperties'
LEFT JOIN syscomments e ON a.cdefault = e.id
WHERE d.name = '表名&视图名&存储过程
标签:name,..,数据库,SQL,Sybase,表名,select
From: https://www.cnblogs.com/GreatPlanHero/p/18222693