SQL
AخA
use hewiki_p;
select count(*) as כמות from page
where page_namespace = 0
and not page_is_redirect;
set @r := 0;
select counter as מונה, page_id as מזהה, replace(page_title, '_', ' ') as ערך from
(select @r := @r + 1 as counter, page.* from page
where page_namespace = 0
and not page_is_redirect
order by cast(page_id as unsigned) asc) p
where (counter % 5000 in (0, 1) or counter=222222)
order by counter desc
limit 100
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.