I'm using the following query:
$sql = "SELECT * FROM 'login' order by 'account_id' ASC";
How do I add a constraint when account_id is equal to 1 it "jumps" and does not catch the values of the line with account_id = 1?
I'm using the following query:
$sql = "SELECT * FROM 'login' order by 'account_id' ASC";
How do I add a constraint when account_id is equal to 1 it "jumps" and does not catch the values of the line with account_id = 1?
Say that the ID can not be 1
:
$sql = "SELECT * FROM 'login' WHERE account_id <> 1 order by 'account_id' ASC";
Assuming the IDs are all positive, it can also look like this:
$sql = "SELECT * FROM 'login' WHERE account_id > 1 order by 'account_id' ASC";