SQL
AخA
USE plwiki_p;
SELECT CONCAT('# [[',page_title,']]') AS page_title
FROM page, pagelinks
WHERE page_id = pl_from
AND pl_from_namespace = 0
AND pl_namespace = 14
AND NOT EXISTS
(SELECT * FROM page AS p1
WHERE pl_title = p1.page_title
AND p1.page_namespace = 14)
/*AND EXISTS
(SELECT * FROM page AS p1, templatelinks AS t1
WHERE t1.tl_from = page_id
AND t1.tl_from_namespace = 0
AND t1.tl_namespace = 10
AND (t1.tl_title LIKE 'Zobacz_kategorię' OR t1.tl_title LIKE 'Kategoria_główna')
LIMIT 1)*/
GROUP BY page_title
ORDER BY page_title ASC;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.