Skip to content

Update table

Featured Replies

Hello MXC Nation, I'm here to ask some wise man an advice, why when i try to update WHOLE table it isn't working I'm updateing it with a navicat comannd
UPDATE etcitems SET price = 1

And it still not working, any solutions for this ?

Edited by zujarka99
grammar misspelling

What does "not working" mean? Does it give you error, does it timeout or what? If there's no error at all, try

UPDATE etcitems SET price=1;
SELECT COUNT(*) FROM etcitems WHERE price<>1;

If it returns 0, then it works - maybe you just work in a transaction and need to

COMMIT;

?

  • Author
8 minutes ago, eressea said:

What does "not working" mean? Does it give you error, does it timeout or what? If there's no error at all, try

UPDATE etcitems SET price=1;
SELECT COUNT(*) FROM etcitems WHERE price<>1;

If it returns 0, then it works - maybe you just work in a transaction and need to

COMMIT;

?

Solved 3 minutes ago with:
UPDATE etcitem SET price = 0 where price > 1;

  • SweeTs locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.