D
D
DrunkMaster2016-07-29 07:01:20
MySQL
DrunkMaster, 2016-07-29 07:01:20

Is it possible to bypass the limitation in mysql?

SELECT `data` FROM `table` WHERE `id` 
IN (SELECT `data2` FROM `table2` ORDER BY `user` DESC LIMIT 0,20)

Error: #1235 - This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
I realized that he doesn't like LIMIT in a subquery, can I get around this by changing the subquery or do I have to split it into 2 queries?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-07-29
@DrunkMaster

Can be bypassed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question