结论:
(ORACLE适用) DELETE FROM TABLEA A WHERE A.FIELD1=10
(SQLSERVER适用) DELETE TABLEA FROM TABLEA A WHERE A.FIELD1=10
(Ora\SQL均适用) DELETE FROM TABLEA WHERE TABLEA.FIELD1=10
两点经验:
1、测试要全面;
2、要自信,写程序时考虑的情况挺全的。
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zhaoxjzhao/archive/2010/06/03/5643873.aspx
update情况
update T_report a
set a.status='1'
where a.report_Seq=1234
执行失败
update a
set a.status='1'
from T_report a
where a.report_Seq=1234
执行成功
UPDATE A
SET A.USER_NICKNAME =B.USER_NAME FROM USER_INFO_DETAIL A,USER_INFO B
WHERE A.USER_ID = B.USER_ID