how to sort `db.updateTable` returning values?
why cant i
.orderBy("id", "asc")
?3 Replies
You can't add an order by clause to an update query in Postgres:
https://www.postgresql.org/docs/15/sql-update.html
What you can do is this:
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
No. It's doing a with statement. Kysely is a WYSIWYG query builder. There's never anything done "under the hood" in that sense. Kysely also always executes one single query when you call
execute
https://kyse.link/?p=s&i=cD5mUe2pO8zUuZnu3Qgb