UPDATE table1
SET Order = 1
WHERE id IN (1234, 2345, 2837, 8399)
If you need different values of Order
for each id, then you probably want to put a loop in whatever program is talking to the database.
Edited to add
I was thinking of looping in a program, but I see you want to execute the SQL interactively.
If you're trying to bundle a sequence of unpredictable numbers like this:
UPDATE table1 Order = 1 WHERE id = 1234
UPDATE table1 Order = 2 WHERE id = 2345
UPDATE table1 Order = 3 WHERE id = 2837
UPDATE table1 Order = 5 WHERE id = 8399
UPDATE table1 Order = 8 WHERE id = 8675
...then I'm not sure how you want that to be shorter. You can write a stored procedure that gets called like this:
do_table1_update "1,2,3,5,8,13", "1234,2345,2837,8399,8675,309"
Is that what you have in mind?