源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

SQL查询出表、存储过程、触发器的创建时间和最后修改时间示例

  • 时间:2022-12-24 16:12 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:SQL查询出表、存储过程、触发器的创建时间和最后修改时间示例
--查询建立时间

--表

select * from sysobjects where id=object_id(N'表名') and xtype='U' 

--表的结构 

select * from syscolumns where id=object_id(N'表名')  

--存储过程 

select * from sysobjects where id=object_id(N'dqtx') and xtype='P' 

 

--查询最后修改时间

--存储过程

select name,modify_date from sys.all_objects where name = '存储过程' and type='P' order by modify_date desc

--触发器

select name,modify_date from sys.all_objects where name = '存储过程' and type='TR' order by modify_date desc

--表

select * from sys.all_objects where name = '存储过程' and type='u' order by modify_date desc
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部