Thread opengeodb (8 answers)
Opened by Froschpopo at 2008-03-15 21:57

murphy
 2008-03-16 16:11
#107098 #107098
User since
2004-07-19
1776 Artikel
HausmeisterIn
[Homepage]
user image
Wie wäre es denn mit dieser einfachen kleinen Abfrage ;-)
Code: (dl )
1
2
3
4
5
6
7
SELECT code.text_val AS area_code, name.text_val AS name,
coords.lon AS lon, coords.lat AS lat
FROM geodb_textdata AS code JOIN geodb_textdata AS name USING (loc_id)
JOIN geodb_coordinates AS coords USING (loc_id)
WHERE code.text_type = 500300000 AND name.text_type = 500100000 AND
code.text_val = ?
ORDER BY name ASC;

(wobei der Platzhalter für die gewünschte Postleitzahl steht)
When C++ is your hammer, every problem looks like your thumb.

View full thread opengeodb