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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -