its just simple where condition, but its working getting all data from the data table. Not considered the value false
select * from `api_auth` where `auth_key` = false;
its just simple where condition, but its working getting all data from the data table. Not considered the value false
select * from `api_auth` where `auth_key` = false;
Here, the issue seems to be with the wrong usage of false
in this statement as a Boolean datatype.
Since the datatype of auth_key
column is text
as you have mentioned as an answer to @ADyson, and you have used the Boolean false
to compare the string datatype in the column, MySql is not populating the results as you require.
comparing you text column with a matching datatype(i.e., string) would fix the error.
i.e.,
select * from `api_auth` where `auth_key` = 'false';