xLosT
Member
must command to delete all accountas on database except two accounts
DELETE * FROM `accounts` WHERE `id` ~= 1 OR `id` ~= 8568137
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM `accounts` WHERE `id` ~= 1 OR `id` ~= 8568137' at line 1
Try it;
Code:DELETE * FROM `accounts` WHERE `id` <> 'Heber Holanda';
![]()
Change:PHP:DELETE * FROM `accounts` WHERE `id` ~= 1 OR `id` ~= 8568137
dont work
~=
!=
DELETE * FROM `accounts` WHERE `id` != 1 OR `id` != 8568137
`id` field only accept numbers, how would it check for 'Heber Holanda'? xD and I don't think that '<>' operators can be used like that