I have some problem with my SQL statement that I use. I would like to store the data to the two tables that has same ID. the process of insertion should be in one time.
The first table:
ID name
--- ----
001 john
002 kate
The second table:
ID status
--- -----------
001 married
002 not married
this is the SQL statement that I have tried but it is not working:
insert into `table_one`, 'table table_two'
values ( ID='003', name='joe'),
values(ID='003', status='married')
I hope that you can give me some solution..
thanks a lot..