I want to execute a SQL query in mysql something like this:
SELECT (0-5) AS `sqlTest`, if(`sqlTest` < 0, 'false', 'true')
But I get the error "Unknown column" sqlTest "in the" list of fields "
Note
This is not an exact request. Here operands 0 and 5 will be replaced with two large queries.
Any help would be appreciated
Thanks in advance.
source share