mariadb 创建触发器的问题

时间:2021-01-06 10:21:33

标签: mysql triggers mariadb

我有 2 个表(tasks - 在其中添加带有用户电话和他的公司 ID 和tenant_phones_comp 的新任务 - 我只添加了 2 列:用户电话和用户公司 ID)并且我尝试创建mariadb 服务器上的触发器。在任务插入新行后,触发器必须向tenant_phones_comp插入行,如果tenant_phones_comp表中不存在该新任务的电话和company_id,则插入它们从任务中的新记录。当我尝试创建触发器时遇到问题。 example here

0 个答案:

没有答案
相关问题