Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
BDA2017
.
Toggle Highlighting
SQL
#What databases exist? #SHOW DATABASES; #Select a database USE simplewiki_p; #Show all tables in the database #SHOW TABLES; #Get info about a table #DESCRIBE page; #Select everything from a table (or some column), limit the number of entires like .head() #SELECT * FROM page LIMIT 10 #Order table #SELECT * FROM revision ORDER by rev_timestamp LIMIT 10 #Order table but descending SELECT rev_page FROM revision ORDER by rev_timestamp DESC limit 10
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...