mysql trigger error
大家讲道理
大家讲道理 2017-05-18 10:47:14
0
1
548

DROP TRIGGER IF EXISTS chufa;CREATE DEFINER=root@localhost TRIGGER chufa AFTER INSERT ON db_product FOR EACH ROW INSERT INTO db_change (value, theme) VALUES (concat('/path/',product_id),theme_value)

When a new record is generated in db_product, merge the string /path/ with the product_id in the db_product table, and insert it together with theme_value into the value and theme fields of db_change

I don’t know what the error is, but it doesn’t work. consult

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
滿天的星座

Tell me where theme_value comes from, and the syntax of new or old before product_id is not written

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!