SQL查询出表、存储过程、触发器的创建时间和最后修改时间示例
2015-06-25 09:21
1061 查看
--查询建立时间 --表 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
您可能感兴趣的文章:
- MySQL学习笔记3:表的基本操作介绍
- 单个select语句实现MySQL查询统计次数
- sql查询出各科成绩最好的学生信息
- mysql查询昨天 一周前 一月前 一年前的数据
- mysql查询今天、昨天、近7天、近30天、本月、上一月的SQL语句
- MySql查询时间段的方法
- MySQL查询和修改auto_increment的方法
- 一个优化MySQL查询操作的具体案例分析
- MySQL查询倒数第二条记录实现方法
- 50条SQL查询技巧、查询语句示例
- 大幅优化MySQL查询性能的奇技淫巧
- SQL大量数据查询的优化及非用like不可时的处理方案
- 如何使用MySQL查询某个列中相同值的数量统计
- SQL如何实现MYSQL的递归查询
- 数据库表的查询操作(实验二)
- 数据库表的查询操作实践演练(实验三)