摘要: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing opt 阅读全文
posted @ 2017-11-02 09:36 暗夜苹果 阅读(2555) 评论(0) 推荐(0) 编辑
摘要: use master; go declare @temp nvarchar(20) declare myCurse cursor for select spid from sys.sysprocesses where dbid=DB_ID('数据库名称')--待清理的数据库 open myCurse 阅读全文
posted @ 2017-11-02 09:31 暗夜苹果 阅读(250) 评论(0) 推荐(0) 编辑
摘要: --SQL Server死锁的查询方法: exec master.dbo.p_lockinfo 0,0; 显示死锁的进程,不显示正常的进程 exec master.dbo.p_lockinfo 1,0; 杀死死锁的进程,不显示正常的进程 --master数据库中创建如下存储过程 create pro 阅读全文
posted @ 2017-11-02 09:22 暗夜苹果 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: --创建存储过程 create procedure [dbo].[updateMuLuBeiZu] AS Declare @archgid VARCHAR(1000), @bz VARCHAR(max), @strSql nvarchar(max) begin Declare curStudentF 阅读全文
posted @ 2017-11-02 09:21 暗夜苹果 阅读(227) 评论(0) 推荐(0) 编辑