sql

All things SQL and JDBC...
seancorfield 2021-06-01T00:04:51.061400Z

What would the SQL look like for that update @orlandomr27?

seancorfield 2021-06-01T00:05:29.062200Z

(you can always do (jdbc/execute-one! ds ["arbitrary SQL for updating DB" ...]) which is why I’m asking)

seancorfield 2021-06-01T00:06:42.063400Z

Given a collection of :code/`:status` pairs that could have arbitrary values, I don’t think you could construct a single SQL statement that updated all the matching rows.

seancorfield 2021-06-01T00:07:00.063800Z

So perhaps instead of “single statement” you mean “single transaction”?

omendozar 2021-06-01T00:10:08.065500Z

Exactly, I meant a single transaction. I have not yet written a SQL query for that

omendozar 2021-06-01T01:05:06.066900Z

Will take a look. Thanks