02 2022 档案
摘要:SQL中declare变量的作用域 declare变量的作用域是所在的批处理,if阻断不了它的作用域
阅读全文
摘要:SQL SERVER 查看所有存储过程或视图里包含某个关键字的查询语句 select [name] ,[xtype] from sysobjects o ,syscomments s where o.id = s.id and text LIKE '关键字' order by name asc
阅读全文
摘要:sp_executesql的用法 sp_executesql介绍和使用 示例 create proc [dbo].[usp_Test] @StartTime datetime ,@EndTime datetime ,@TestOutput int output as begin --定义动态SQL和
阅读全文