机油多长时间变质:数据库存储过程(如何在Stored Procedures中实现添加,删除,修改等功能)

来源:百度文库 编辑:神马品牌网 时间:2024/03/28 20:07:42
就是要在Stored Procedures写一段以后可以反复使用的存储起来的代码使它被调用后能够实现添加,删除,修改的功能.

As my experience, you need dynamic SQL to do so.
While it is not a good practice to use dynamic SQL in a SP.
Suggest to study SQL Server, SP_HELP and SP_HELPDB, Hopefully their structures can be of some help. (I can not post the code because over 200 characters limits).