mysql - java query select data from two table and insert into another table -
i have 2 table, 1 traininfo
other personalinfo
personal info contain pid , train info contain tid (
traininfo
)when user book train pid , tid selected , insert third table named book info , booking id generate when booked.
so if want perform should use separate query add 1 one or join information want , add together?
- there other item within both table , want select 2 item
Comments
Post a Comment