这个问题我莫名其妙:MySQL的交易查询帮助
BEGIN;
INSERT INTO sub_users(user_id, email)
SELECT user_id FROM users WHERE email='[email protected]', '$email';
COMMIT;
通常情况下,我在交易多条语句,但我删除那些清晰。
我得到这个错误:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near ' '[email protected]'' at line 1
我使用的MySQL版本5.1.36
我可能要开始一个新的职位,因为这一个似乎是混乱的每一个人。我只想从用户表中选择一个值,然后将$ email的用户定义值插入到表sub_users中。 – Chad 2009-10-26 03:03:27
不需要新帖子;请仔细阅读答复。 – ChssPly76 2009-10-26 03:11:04