If you use MySQL workbench, you might or already have encountered an error such as “Select is not valid at this position for this server version”.
Example,
Suppose there are two tables customers and orders between which we want to apply a JOIN operation on columns
id
and customerid
of tables customers and orders respectively. SQL Query for the JOIN operation should be
SELECT * FROM customers JOIN orders ON customers.id = orders.customerid;
Now if you mistakenly place the ON keyword just after JOIN keyword and insert a WHERE before the condition, which makes the query as
SELECT * FROM customers JOIN ON orders WHERE customers.id = orders.customerid;
Thus, if you encounter this error next time, do check the syntax of your SQL query before searching any further.
8 comments on “How to resolve “Select is not valid at this position for this server version, expecting ‘(‘, with” error in MySQL”
Leave a Reply
You must be logged in to post a comment.
whoah this weblog is wonderful i like studying your posts.
Staay uup the great work! You realize, lots of people
are searchinng round for this information, you can aid them greatly.
Seriously loads of fantastic knowledge!
Emanuel
Nice blog here!
This blog entry is complete rubbish – what you need to do is make sure you have the correct version of Workbench
You will get this error on whatever version you choose, if there is a mistake in the query.
Thankyou really helped
Glad it helped !
i am getting same error with merge keywod please help me