|
-
Jul 20th, 2007, 01:19 PM
#3
Thread Starter
No place like 127.0.0.1
Re: Difficult nested SELECT within an INSERT statement
I can't get it to stop having syntax errors. The first error I get is:
#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 '[name], name_based_id=(SELECT COUNT(*) FROM artists WHERE name='Joe')
Union' at line 3
When I remove the square brackets from NAME, I then get this error:
#1054 - Unknown column 'name_based_id' in 'field list'
Any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|