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