خرید بک لینک

Vote count: 0

I would like to remove all rows from the table EXCEPT when FirstName is Ben and isAdmin is true

Here is my SQL

DELETE FROM Table1
WHERE (FirstName <> 'Ben' AND isAdmin = 1);

However, my issue is that when isAdmin is false... it should remove that row as well but it doesn't remove it. What is my issue here?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 1 ارديبهشت 1395 ساعت: 2:36

صفحه بندی