mysql - SQL subquery in INSERT? -
is possible use subquery in insert statement?
insert table (age, p_id) values('22', '(select id people name='bob')')
is there working form of i'm attempting?
using mysql database
insert mytable (age, p_id) select '22', ( select id people name = 'bob')
or this
insert mytable (age, p_id) select '22', id people name = 'bob'
Comments
Post a Comment