Benutzer:Horgner/CH status SQL
gute Abfragen
Fromatierung die ein gute Abfrage vehindert
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%KANTON = %'
OR cur_text LIKE '%KANTON=%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
lange Gemeinden Artikel ohne Bild
SELECT cur_namespace, cur_title, LENGTH(cur_text) as Laenge FROM cur WHERE cur_text LIKE '%Schweizer Gemeinde]]%' AND cur_text not LIKE '%[[Bild:%' ORDER BY LENGTH( cur_text ) DESC , cur_timestamp DESC LIMIT 2500
* Koodinaten Check
Gemeindeartikel mit voreilenden 0 in Koordinaten:
SELECT cur_title, cur_namespace, CONCAT(LENGTH( cur_text ) , ' Bytes') AS Groesse
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz|%'
AND (cur_text LIKE '%BREITENGRAD = 0%' OR cur_text LIKE '%LÄNGENGRAD = 0%' OR cur_text LIKE '%°_0%')
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste abgearbeitet 27.6.2005
Gemeindeartikel mit vertauschten Koordinaten:
SELECT cur_title, cur_namespace, CONCAT(LENGTH( cur_text ) , ' Bytes') AS Groesse
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz|%'
AND cur_text NOT LIKE '%BREITENGRAD = 4%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste abgearbeitet 3.7.2005
* km2 Check
SELECT CONCAT( '# [[', cur_title, ']]')
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz|%'
AND cur_text LIKE '%km2%'
LIMIT 500
Liste abgearbeitet 2.7.2005
* Check alte Einwohnerentwicklung, Tabellenlayout
SELECT cur_title, cur_namespace, CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz|%'
AND cur_text LIKE '%Einwohneren%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste abgearbeitet 1.7.2005
* falsche Daten
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND (cur_text LIKE '%.12.%' OR cur_text LIKE '%. 12.%')
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste update mit Dump 15. November 2005
* Kontrolle von Wappen
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%KANTON = Wallis|%'
AND cur_text NOT LIKE '%Wappen_fehlt.jpg%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste für TG LU SO GR TI JU FR NE BE VD VS abgearbeitet
* Gemeinden mit Stub Baustein
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND cur_text LIKE '%{{stu%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
FROM cur
WHERE cur_namespace = 0
AND cur_text LIKE '%{{%stub%}}%'
AND cur_text LIKE '%{{Ort_Schweiz%'
HAVING lung > 1500
ORDER BY lung DESC, cur_title LIMIT 500
* Gemeinden mit fehlender Navileiste, bringt meist Ortschaften
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND cur_text NOT LIKE '%Navigationsleiste%'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Liste update mit Dump 15. November 2005
* Geographie Check
SELECT cur_title
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz|%'
AND cur_text LIKE '%Geografie%'
LIMIT 200
Liste update mit Dump 15. November 2005
* unberechtigter Stub Baustein
SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
FROM cur
WHERE cur_namespace = 0
AND cur_text LIKE '%{{stu%'
AND cur_text LIKE '%{{Ort_Schweiz%'
HAVING lung > 1300
ORDER BY lung DESC, cur_title LIMIT 500
Liste update mit Dump 15. November 2005
* Söhne und Töchter
SELECT CONCAT( '# [[' , page_title, ']] ' , page_len ) FROM page, text WHERE page_latest = old_id AND page_namespace=0 AND old_text LIKE '%[[Kategorie:Schweizer Gemeinde%' AND old_text LIKE '%Söhne und Töchter%' LIMIT 200;
Liste vom 20. März 2008
* keine Weblinks
SELECT concat('# [[', cur_title, ']]'), length(cur_text) AS lung
FROM cur
WHERE cur_namespace = 0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND cur_text NOT LIKE '%Weblink%'
ORDER BY lung DESC, cur_title LIMIT 500
abgearbeitet 2. Oktober 2005
nicht so gute Abfrage
schweizbezogen Artikel
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_text LIKE '%<!--schweizbezogen-->%'
AND NOT cur_text LIKE '%{{Begriffsklärung}}%'
AND NOT cur_text LIKE '%#REDIRECT %'
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 20
- Schweizer_Fussballverein (182 Bytes)
- Binz_(Maur) (291 Bytes)
- Gamsen_VS (341 Bytes)
- Riviera_(Schweiz) (342 Bytes)
Check BFS Nr. u. Karte
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND (cur_text LIKE '%BFS = 0000|%' OR cur_text NOT LIKE '%BILDPFAD_KARTE = Karte Gemeinde%' OR cur_text NOT LIKE '%BILDPFAD_KARTE = Karte_Gemeinde%')
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
es kommen die falschen
- Liddes (708 Bytes)
- Sembrancher (731 Bytes)
- Vétroz (806 Bytes)
- Orsières (826 Bytes)
- Vollèges (826 Bytes)
- Lohnstorf (874 Bytes)
- Bourg-Saint-Pierre (928 Bytes)
- Ardon_VS (943 Bytes)
- Geschinen (943 Bytes)
- Romoos (988 Bytes)
- Gluringen (1013 Bytes)
- Neudorf_LU (1036 Bytes)
- Selma_GR (1058 Bytes)
- Chamoson (1069 Bytes)
- Hasle_LU (1089 Bytes)
- Mesocco (1129 Bytes)
- Rickenbach_SO (1141 Bytes)
- Ferenbalm (1252 Bytes)
- Mauensee_LU (1265 Bytes)
Vorlage nicht in Stadt oder Gemeinde Artikel
Abfrage hat Probleme
SELECT CONCAT( '# [[', cur_title, ']] (', LENGTH( cur_text ) , ' Bytes)' )
FROM cur
WHERE cur_namespace=0
AND cur_is_redirect=0
AND cur_text LIKE '%{{Ort_Schweiz%'
AND (cur_text NOT LIKE '%GEMEINDEART = Stadt%' OR cur_text NOT LIKE '%GEMEINDEART = Gemeinde%')
ORDER BY LENGTH( cur_text ) ASC , cur_timestamp ASC
LIMIT 500
Hat nicht funktioniert, warum ?
- Reckingen_VS (633 Bytes)
- Nebikon (678 Bytes)
- Arbaz (685 Bytes)
- Salins_VS (686 Bytes)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.