T-SQL操作XML 数据类型方法 "modify" 的参数 1 必须是字符串文字。
2024-10-21 02:51:57
----删除关键字的同时也清理AP表中所有关联这个ID的数据
create trigger Trg_UpdateAppWordOnDelKeyWord
on [dbo].[tbl_KeyWord]
for delete
as
declare @work_id int
select @work_id = Word_Id from deleted
update [dbo].[tbl_APP] set APP_Word.modify('delete /id[.=sql:variable("@work_id")]') where APP_Word.exist('/id[.=sql:variable("@work_id")]') > 0
go
关键字是:sql:variable
最新文章
- javascript——三元操作符
- Hadoop_UDAF示例
- MVC LINQ to SQL: Basic Concepts and Features
- python算法:rangeBitwiseAnd(连续整数的与)
- Solve problem 'SURF' is not a member of 'cv'
- Android Studio 系列教程(转载)
- 【Unity Shaders】学习笔记——SurfaceShader(八)生成立方图
- 分享 - Social.framework
- UVa11090 Going in Cycle!!
- java 属性
- POJ3083 Children of the Candy Corn(搜索)
- 升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法-备
- 手机QQ v4.2 有感
- 开始的iOS编程之前的准备
- jsp之用户自定义标签
- 《Machine Learning》系列学习笔记之第二周
- pymysql安装和使用
- TopCoder SRM 559 Div 1 - Problem 900 CircusTents
- gitlab+PHP 自动部署设计方案
- android异步任务处理(网络等耗时操作)