该 MySQL 语句没有语法错误。

DECLARE `contactable` BIT(1);
SELECT `contactable` INTO `contactable` FROM `Profile` WHERE `username` = NEW.`contact`;

该语句使用 SELECT INTO 语句将 Profile 表中 username 等于 NEW.contact 的行的 contactable 字段值赋给声明的 contactable 变量。

MySQL 语句检查:'contactable' 字段赋值

原文地址: https://www.cveoy.top/t/topic/m0Up 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录