3 ms·
A front end that (perhaps only had a mode that) required delete or update queries to be preceded by select queries, and then styled as “DELETE IT;” or “UPDATE I
by dragonwriter 8y ago
A front end that (perhaps only had a mode that) required delete or update queries to be preceded by select queries, and then styled as “DELETE IT;” or “UPDATE IT SET ...;” which use the FROM and (if present) WHERE clause from the preceding SELECT would be interesting.
- photonios 8y agoThis seems such a good idea that I doubt nobody ever tried to implement something like this. At least for PostgreSQL, someone tried: https://www.postgresql.org/message-id/12104.1150425319%40sss.pgh.pa.us https://www.postgresql.org/message-id/12104.1150425319%40sss... But it doesn't seem like it got much serious attention.
- dragonwriter 8y agoThat seems to be someone asking for a back-end change to prevent such queries, not a front-end change. I think front-end makes sense, where SQL is a UI, not back-end, where it is an API.