i have 2 tables. TABLE A COLUMNS - aid , aname TABLE B COLUMNS - bid , bname
from table A, i will pick up data from column 'aid', AND insert it in 'bid' column of table B , but in bname column of table B, i will insert a new value. how do i do this?
create table A(aid int,aname char)
insert into A values(111, 'e')
create table B(bid int, bname char)
insert into B (bid,bname)
bid will take value from the query : select aid from a bname will get a new value -m
expected result should be : THE TABLE B WILL HAVE :
bid bname --- ----- 111 m