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.
以下是正确的吗?我收到一个错误。
<?php $form_id = $form->data['form_id']; $query = mysql_query(" ALTER TABLE 'email_history' DROP '$form_id'; ") or die(mysql_error()); ?>
使用 `(反引号)在 MySQL 中分隔对象名称。试试看
ALTER TABLE `email_history` DROP `$form_id`;
注意,我不知道 php,但你不能参数化 DDL(ALTER TABLE等)
ALTER TABLE