2020年10月9日

SQL 数据库引擎语句 sp_executesql 的使用介绍(Transact-SQL)

摘要: SQL 数据库引擎语句 sp_executesql 的使用介绍(Transact-SQL) 1、sp_executesql 介绍 功能描述:执行可多次重用的Transact-SQL语句或批处理,或动态生成的语句或批处理。Transact-SQL语句或批处理可以包含嵌入参数。 语法: -- SQL S 阅读全文

posted @ 2020-10-09 17:24 滔Roy 阅读(1442) 评论(0) 推荐(0) 编辑

SQL 判断记录是否存在的几种方法

摘要: SQL 判断记录是否存在的几种方法 1、 if exists (select * from table1 where conditions) select '1' else select '0' 2、 select isnull((select top 1 * from table1 where c 阅读全文

posted @ 2020-10-09 15:17 滔Roy 阅读(8497) 评论(0) 推荐(1) 编辑

SQL 存储过程[4] - 简洁框架

摘要: SQL 存储过程[4] - 简洁框架 if exists(select name from sysobjects where name='ProName' and type='P') drop procedure ProName go create procedure [dbo].[ProName] 阅读全文

posted @ 2020-10-09 14:34 滔Roy 阅读(211) 评论(0) 推荐(0) 编辑

导航