sql 常见查询

--查询版本号SQL2000
select serverproperty('productlevel')


--查询表在所有字段名称
Select name from syscolumns Where ID=OBJECT_ID('barinfo')


--查询数据中所有表名

select name from sysobjects where type='U'

你可能感兴趣的:(sql,数据库,职场,休闲,sql2000)