I’d like to execute a line of INSERT, but only when an if condititonal is true.
Here’s a basic example (just to simplify the question) in psuedo code.
"If there is a user id = 5 in the users table (using SELECT), execute: INSERT INTO someOtherTable ... ()"
Any help is greatly appreciated.
if users.id is primary key or at least unique
for non unique test you can use the special table DAUL