select text from syscomments where id =(
select id from sysobjects where name='vw_orderitem'--vw_orderitem为视图的名称
)

 

可以查询表名,视图名,存储过程名等
select * from sysobjects
--where xtype='U' --表名
--where xtype='V' --视图名
--where xtype='PK' --主键
--where xtype='P' --存储过程

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-01-09
  • 2021-10-30
  • 2022-01-02
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案