BEGIN /** delete queries **/
DELETE FROM blah_blah
END /** delete queries **/
BEGIN /** update queries **/
UPDATE sometable SET something = 1
END /** update queries **/
这个方法在管理工作室中表现得相当不错,对于检查代码非常有帮助。倒塌的部分看起来有点像:
BEGIN /** delete queries **/ ... /** delete queries **/