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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

Delphi 7 and decode UTF-8 base64 -