Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个要合并的数据库。 我有两个在两个数据库中完全相同的值。 It's id&id_p 第一个数据库被称为:locatie and has:ID, latitude, longitude, timestamp 另一个数据库被称为:persooninfo and hasid_p, voornaam, achternaam, opleiding, diploma, bezig 有谁知道我可以如何组合这两个数据库?
id
id_p
locatie
ID, latitude, longitude, timestamp
persooninfo
id_p, voornaam, achternaam, opleiding, diploma, bezig
--获取定位表中的所有列
select l.* from locatie l join persooninfo p on l.id=p.id_p
--从personinfo表中获取所有列
----从personinfo和locate表中获取所有列
select * from locatie l join persooninfo p on l.id=p.id_p