Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个查询,它表明我有语法错误。我终其一生都无法理解它是什么。我有一个表,其中一列是电子邮件,另一列是订阅的(后者是使用 tinyint 的布尔值)。知道这种语法有什么问题吗?
$query = "UPDATE $DB_TABLE SET $DB_IS_SUBSCRIBED_KEY = 0 WHERE $DB_EMAIL_KEY = $email";
您的电子邮件值需要用引号括起来。
UPDATE tablename SET columname = 1 WHERE emailcolumn = "email@email.com"