In Oracle, the below statement works perfectly:
INSERT INTO fake_table (names, gender)
VALUES ( (SELECT distinct(name)
FROM target_table),
'F');
I don't want to touch the SELECT
statement - SELECT distinct(name) FROM target_table
Being said that, I want same fucntionality in MySQL. I got many codes with Static values within Select statement, but I am not looking for that. Simply put; I am looking to initialize 'F' separatly.
Thank you for your help in advance. :)