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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -