Delete sql plus alias Notes

    1. Delete sql syntax:

    DELETE FROM 表名称 WHERE 列名称 = 值
For example: DELETE from TBL_CAMERA_MONTH_ONLINE_STAT where CAMERAID = ' 123456789';

when Alias Table 2. Syntax:
DELETE 别名 FROM 表名称 别名 WHERE 列名称 = 值
For example: DELETE a from TBL_CAMERA_MONTH_ONLINE_STAT a where a.CAMERAID = '123456789'

Note:
1. If the application table alias delete, delete the back must be connected to a corresponding alias, and then followed by the name of the table, otherwise an error.

Guess you like

Origin www.cnblogs.com/jiangwg/p/11989792.html