![]() |
variable into update
Code:
update tI want same UUID for each record ! I know how to do it in two separate sql-s, but I'm almost sure that could be done with one sql only (creating & using varaible inside sql). How to do it, if possible ? |
Well, I don't know how to do it in one query, but I know how to do it all in a single operation.
Code:
SET @u = UUID(); UPDATE t SET f = @u WHERE id = 5; |
| All times are GMT +1. The time now is 05:58 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.