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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -