在sqlite中连接具有不同列名但值相同的表
我正在使用SQLite处理我的数据库 我有两个不同的表,其中键列的名称不同,但值相同 因此:在sqlite中连接具有不同列名但值相同的表,sql,sqlite,Sql,Sqlite,我正在使用SQLite处理我的数据库 我有两个不同的表,其中键列的名称不同,但值相同 因此: shoes Identification | Name | Shoe size 1 Bob 10 2 John 12 payment PaymentID | Price | Year 1 20 2013 2 38 2015 我需要 Identificatio
shoes
Identification | Name | Shoe size
1 Bob 10
2 John 12
payment
PaymentID | Price | Year
1 20 2013
2 38 2015
我需要
Identification(or PaymentID, no matter) | Name | Shoe size | Price | Year
1 Bob 10 20 2013
2 John 12 38 2015
我一直在搜索,试图理解这些教程,但没有用。我想我太蠢了谢谢你,这太基本了,但这只是你回答的最后一部分,我脑子里有土豆泥。
select s.identification, s.name, s.`shoe size`, p.price, p.year
from shoes s
join payment p on p.paymentid = s.identification