1

結合したいデータベースが 2 つあります。
両方のデータベースでまったく同じ値が 2 つあります。
It's id& id_p
The first database is called: locatie
and has: ID, latitude, longitude, timestamp
the other database is called: persooninfo
and hasid_p, voornaam, achternaam, opleiding, diploma, bezig
これら 2 つのデータベースを組み合わせる方法を知っている人はいますか?

4

1 に答える 1

3

-- 場所テーブルからすべての列を取得するには

select l.* from   locatie l
join   persooninfo p
on     l.id=p.id_p

-- personinfo テーブルからすべての列を取得するには

select l.* from   locatie l
join   persooninfo p
on     l.id=p.id_p

----personinfo と locatie テーブルからすべての列を取得するには

select * from   locatie l
join   persooninfo p
on     l.id=p.id_p
于 2012-09-14T06:52:13.930 に答える