this post was submitted on 29 Dec 2024
-13 points (39.0% liked)

Programmer Humor

19883 readers
376 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

'; UPDATE countries SET great = true WHERE name = 'America'; --

More based: '; UPDATE countries SET great = true; --

(this is not an endorsement of donald trump)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 week ago* (last edited 1 week ago)

Alternative:

UPDATE country
SET great = true
WHERE name = 'America';update money set owner=account.id from account where account.name='Donald Trump';'

And that's why we use bound parameters.

(Also, if it's unclear I also don't support Donald Trump)