i would like to insert two values into a table, one value is constant (user_id) and second values are selected from other table. I have an error:
#1064 - Something is wrong in your syntax obok 'select name from payment_methods_default)' w linii 1
insert into payment_methods_assigned_to_users (user_id, name)
VALUES (1, select name from payment_methods_default);