Code
方法:
语句段以 “Begin”开始,“End;”结尾。中间写SQL语句。
例子:
一次执行四条Update语句。
begin
update ORGANIZATION_EMPLOYEE set OFFICEPHONE='57358771' where EMPLOYEEID='5E4A4BB49FDFEA0FE04014AC2346221A';
update ORGANIZATION_EMPLOYEE set OFFICEPHONE='57358771' where EMPLOYEEID='5E4A4BB4A013EA0FE04014AC2346221A';
update ORGANIZATION_EMPLOYEE set OFFICEPHONE='57358771' where EMPLOYEEID='597BDF1E81274E3C8CC1CC2786A369C7';
update ORGANIZATION_EMPLOYEE set OFFICEPHONE='57375058' where EMPLOYEEID='5E4A4BB4A00FEA0FE04014AC2346221A';
end;
原文地址:http://www.cnblogs.com/scottckt/archive/2009/03/30/1425300.html