August 2, 2012 | In: Programovanie
mysql switch 2 rows – prehodit 2 riadky
Ako prehodit 2 riadky v mysql pomocou jedneho sql
pekne a jednoduche riesenie:
UPDATE mod_player SET name=@tmp:=name, name=surname, surname=@tmp
ziadne join-ovanie, rychle a elegantne 😉
Comments are closed.