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
相关推荐
zjuwangleicn 2020-06-25
ncomoon 2020-06-14
hanshangzhi 2020-06-12
一昕之代码 2020-02-20
dayi 2020-04-11
Accpcjg 2020-03-05
勇往直前 2020-03-04
勇往直前 2020-02-02
oArvin 2020-01-03
Omega 2020-08-16
zjyzz 2020-08-16
minggehenhao 2020-07-28
zhaojp0 2020-06-27
wenjieyatou 2020-06-17
liaomingwu 2020-06-16
hungzz 2020-06-16
muzirigel 2020-06-14
gsmfan 2020-06-14