热线电话:13121318867

登录
2020-11-03 阅读量: 571
怎么样查询数据库的表名以及表的列名

--读取库中bai的所du有表名zhi

select name from sysobjects where xtype='u'

--读取指定表dao的所有4102列名1653

select name from syscolumns where id=(select max(id) from sysobjects where xtype='u' and name='表名')


54.5391
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子