开发者

Inserted, Deleted Tables (Magic Tables) in MySQL

开发者 https://www.devze.com 2023-03-11 03:10 出处:网络
I am regular user of MS-SQL but now working on a project which has mysql as a back-end. Please tell me that is ther开发者_如何学Pythone exists such a inserted/Deleted tables (Magic tables) in mysql w

I am regular user of MS-SQL but now working on a project which has mysql as a back-end.

Please tell me that is ther开发者_如何学Pythone exists such a inserted/Deleted tables (Magic tables) in mysql which I can use inside trigger or in normal queries.


They are called NEW and OLD in MySQL.

NEW is the new record to be inserted or the updated data.

OLD is the deleted record, or the old data before an update.

See the documentation for creating a trigger here: http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号