leetnigga wrote:You might want to explain what you're trying to do as that query makes no sense to me.
Yeah I realized that now that I woke up.
I am trying to use a SELECT inside of a LIMIT, so that I can get either a 1 or a 0 depending on the SELECT statement inside of the parentheses.
For example
Code: Select all
SELECT table_name FROM information_schema.tables LIMIT 1
But instead I want something like
Code: Select all
SELECT table_name FROM information_schema.tables LIMIT (SELECT (IF(1=1, 1,2)))
So that when the statement is true, it gives a 1 in this case, and a 2 if false.
To make it even more clear, it's for a blind SQL injection I'm playing with.