USE bnwiki_p; SELECT CONCAT("# [[",page title,"]]") AS page_title FROM page WHERE page_namespace = 0 AND page_len = 0;