----删除关键字的同时也清理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

最新文章

  1. javascript——三元操作符
  2. Hadoop_UDAF示例
  3. MVC LINQ to SQL: Basic Concepts and Features
  4. python算法:rangeBitwiseAnd(连续整数的与)
  5. Solve problem 'SURF' is not a member of 'cv'
  6. Android Studio 系列教程(转载)
  7. 【Unity Shaders】学习笔记——SurfaceShader(八)生成立方图
  8. 分享 - Social.framework
  9. UVa11090 Going in Cycle!!
  10. java 属性
  11. POJ3083 Children of the Candy Corn(搜索)
  12. 升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法-备
  13. 手机QQ v4.2 有感
  14. 开始的iOS编程之前的准备
  15. jsp之用户自定义标签
  16. 《Machine Learning》系列学习笔记之第二周
  17. pymysql安装和使用
  18. TopCoder SRM 559 Div 1 - Problem 900 CircusTents
  19. gitlab+PHP 自动部署设计方案
  20. android异步任务处理(网络等耗时操作)

热门文章

  1. python基础3 ---python数据类型二
  2. 利用CocoaPods管理本地工程和发布开源框架
  3. ncl 实例参考
  4. shiro1
  5. springboot5
  6. 323 id与小数据池
  7. 【Flask】Column常用参数
  8. Wildfly在Linux下以Service的方式启动 配置步骤
  9. MapReduce分区的使用(Partition)
  10. Shiro 集成 Web