select [name] from [sysdatabases]
use 当前库名
select [name] from [sysobjects] where [type] = 'u'
--u 表示用户表
select [name] from syscolumns where id= object_id('pcar')
object_id :返回架构范围内对象的数据库对象标识号。
select [name] from [sysdatabases]
use 当前库名
select [name] from [sysobjects] where [type] = 'u'
--u 表示用户表
select [name] from syscolumns where id= object_id('pcar')
object_id :返回架构范围内对象的数据库对象标识号。