How do you select from multiple tables in sqlite in Java?

后端 未结 2 1586
萌比男神i
萌比男神i 2021-01-28 21:58

I\'m trying to learn how to use an sqlite database in a java program. (not Android). I went to this link, download the jdbc library and copied the example. The example worked wi

2条回答
  •  暖寄归人
    2021-01-28 22:48

    You should define alias for table name as below

    select pc.name, ps.name from purchase as pc inner join person as ps on ps.id = pc.id
    

提交回复
热议问题