我需要用创建的(时间戳)和id(自动)数据填充cod_unico列,我不能用php做这件事,因为另外两列是在MariaDB中生成的,通常我不想改变它,所以我尝试了一个after insert triggerupdate,但我得到了这个错误:无法更新存储函数/触发器中的表‘used’,因为它已经被调用此存储函数/触发器的语句使用。我在before insert触发器中尝试了这段代码 DROP TRIGGER IF EXISTS `agregar_cod_unic
---------------+-------------+------+-----+---------+-------+OS : CentOS 7
Database : MariaDBThis version of MariaDB doesn't yet support 'multiple triggers with the same action time and event for为每个行集在用户上插入之前创建触发器before_insert_info
我在表上创建了一个触发器,用于在插入一行后将值插入到同一表中的一个列中。您可以从下面的代码中看到,插入到列中的内容取决于一组验证。insert insert table语句时,我得到了错误,#1109 - Unknown table 'table_1' in field list
我以前从未在MySQL中处理过触发器