You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to write below query in posrgres using GORM? Can some one help on this?
I don't see any documation in gorm for this type of query. https://gorm.io/docs/update.html
update users as u
set
email = u2.email,
first_name = u2.first_name,
last_name = u2.last_name
from (values
(1, 'hollis@weimann.biz', 'Hollis', 'Connell'),
(2, 'robert@duncan.info', 'Robert', 'Duncan')
) as u2(id, email, first_name, last_name)
where u2.id = u.id;
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered:
How to write below query in posrgres using GORM? Can some one help on this?
I don't see any documation in gorm for this type of query.
https://gorm.io/docs/update.html
The document you expected this should be explained
Expected answer
The text was updated successfully, but these errors were encountered: