Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Browse mode
Customize browse mode.
Browse mode
Documentation Use only icons, only text or both. Restore default value
Documentation Use only icons, only text or both. Restore default value
Documentation Whether a user should be displayed a "show all (rows)" button. Restore default value
Documentation Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown. Restore default value
Documentation SMART - i.e. descending order for columns of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise. Restore default value
Documentation Highlight row pointed by the mouse cursor. Restore default value
Documentation Highlight selected rows. Restore default value
Documentation Restore default value
Documentation Restore default value
Documentation Repeat the headers every X cells, 0 deactivates this feature. Restore default value
Documentation Maximum number of characters shown in any non-numeric column on browse view. Restore default value
Documentation These are Edit, Copy and Delete links. Restore default value
Documentation Whether to show row links even in the absence of a unique key. Restore default value
Documentation Default sort order for tables with a primary key. Restore default value
Documentation When browsing tables, the sorting of each table is remembered. Restore default value
Documentation For display Options Restore default value
SELECT * FROM `help_topic` ORDER BY `example` DESC 
Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
Full texts help_topic_id name help_category_id description example Descending Ascending 1 url
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 1
1 JOIN 27 MySQL supports the following JOIN syntaxes for the...
SELECT left_tbl.*
  FROM left_tbl LEFT JOIN right_...
https://mariadb.com/kb/en/join-syntax/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 230
230 CONVERT 37 Syntax:
CONVERT(expr,type), CONVERT(expr USING tra...
SELECT enum_col FROM tbl_name ORDER BY CAST(enum_c...
https://mariadb.com/kb/en/convert/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 292
292 ASBINARY 32 AsBinary(g), AsWKB(g)

Converts a value in interna...
SELECT AsBinary(g) FROM geom;

https://mariadb.com/kb/en/asbinary/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 269
269 PURGE BINARY LOGS 8 Syntax:
PURGE { BINARY | MASTER } LOGS
   { TO 'l...
PURGE BINARY LOGS TO 'mysql-bin.010';
PURGE BINARY...
https://mariadb.com/kb/en/sql-commands-purge-logs/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 112
112 DEFAULT 14 Syntax:
DEFAULT(col_name)

Returns the default val...
MariaDB> UPDATE t SET i = DEFAULT(i)+1 WHERE id < ...
https://mariadb.com/kb/en/default/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 359
359 LOAD_FILE 37 Syntax:
LOAD_FILE(file_name)

Reads the file and r...
MariaDB> UPDATE t
            SET blob_col=LOAD_FI...
https://mariadb.com/kb/en/load_file/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 328
328 SHOW PROCEDURE STATUS 26 Syntax:
SHOW PROCEDURE STATUS
   [LIKE 'pattern' ...
MariaDB> SHOW PROCEDURE STATUS LIKE 'sp1'\G
******...
https://mariadb.com/kb/en/show-procedure-status/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 278
278 SHOW CREATE TABLE 26 Syntax:
SHOW CREATE TABLE tbl_name

Shows the CREA...
MariaDB> SHOW CREATE TABLE t\G
*******************...
https://mariadb.com/kb/en/show-create-table/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 17
17 SHOW CREATE PROCEDURE 26 Syntax:
SHOW CREATE PROCEDURE proc_name

This stat...
MariaDB> SHOW CREATE PROCEDURE test.simpleproc\G
*...
https://mariadb.com/kb/en/show-create-procedure/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 358
358 SHOW CREATE EVENT 26 Syntax:
SHOW CREATE EVENT event_name

This stateme...
MariaDB> SHOW CREATE EVENT test.e_daily\G
********...
https://mariadb.com/kb/en/show-create-event/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 309
309 SHOW CREATE DATABASE 26 Syntax:
SHOW CREATE {DATABASE | SCHEMA} [IF NOT EX...
MariaDB> SHOW CREATE DATABASE test\G
*************...
https://mariadb.com/kb/en/show-create-database/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 429
429 PASSWORD 12 Syntax:
PASSWORD(str)

Calculates and returns a ha...
MariaDB> SET old_passwords = 0;
MariaDB> SELECT PA...
https://mariadb.com/kb/en/password/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 325
325 AREA 2 Area(poly)

Returns as a double-precision number t...
MariaDB> SET @poly = 'Polygon((0 0,0 3,3 0,0 0),(1...
https://mariadb.com/kb/en/area/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 402
402 NUMINTERIORRINGS 2 NumInteriorRings(poly)

Returns the number of inte...
MariaDB> SET @poly =
    -> 'Polygon((0 0,0 3,3 3,...
https://mariadb.com/kb/en/numinteriorrings/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 403
403 INTERIORRINGN 2 InteriorRingN(poly,N)

Returns the N-th interior r...
MariaDB> SET @poly =
    -> 'Polygon((0 0,0 3,3 3,...
https://mariadb.com/kb/en/interiorringn/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 143
143 EXTERIORRING 2 ExteriorRing(poly)

Returns the exterior ring of t...
MariaDB> SET @poly =
    -> 'Polygon((0 0,0 3,3 3,...
https://mariadb.com/kb/en/exteriorring/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 225
225 NUMPOINTS 13 NumPoints(ls)

Returns the number of Point objects...
MariaDB> SET @ls = 'LineString(1 1,2 2,3 3)';
Mari...
https://mariadb.com/kb/en/numpoints/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 501
501 GLENGTH 13 GLength(ls)

Returns as a double-precision number ...
MariaDB> SET @ls = 'LineString(1 1,2 2,3 3)';
Mari...
https://mariadb.com/kb/en/glength/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 198
198 STARTPOINT 13 StartPoint(ls)

Returns the Point that is the star...
MariaDB> SET @ls = 'LineString(1 1,2 2,3 3)';
Mari...
https://mariadb.com/kb/en/startpoint/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 286
286 POINTN 13 PointN(ls,N)

Returns the N-th Point in the Linest...
MariaDB> SET @ls = 'LineString(1 1,2 2,3 3)';
Mari...
https://mariadb.com/kb/en/pointn/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 102
102 ENDPOINT 13 EndPoint(ls)

Returns the Point that is the endpoi...
MariaDB> SET @ls = 'LineString(1 1,2 2,3 3)';
Mari...
https://mariadb.com/kb/en/endpoint/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 183
183 NUMGEOMETRIES 25 NumGeometries(gc)

Returns the number of geometrie...
MariaDB> SET @gc = 'GeometryCollection(Point(1 1),...
https://mariadb.com/kb/en/numgeometries/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 213
213 GEOMETRYN 25 GeometryN(gc,N)

Returns the N-th geometry in the ...
MariaDB> SET @gc = 'GeometryCollection(Point(1 1),...
https://mariadb.com/kb/en/geometryn/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 386
386 MBRWITHIN 6 MBRWithin(g1,g2)

Returns 1 or 0 to indicate wheth...
MariaDB> SET @g1 = GeomFromText('Polygon((0 0,0 3,...
https://mariadb.com/kb/en/mbrwithin/
Edit Edit Copy Copy Delete Delete
DELETE FROM help_topic WHERE `help_topic`.`help_topic_id` = 354
354 MBRCONTAINS 6 MBRContains(g1,g2)

Returns 1 or 0 to indicate whe...
MariaDB> SET @g1 = GeomFromText('Polygon((0 0,0 3,...
https://mariadb.com/kb/en/mbrcontains/
With selected: With selected:
Query results operations Copy to clipboard Copy to clipboard Export Export Display chart Display chart Create view Create view
Bookmark this SQL query Bookmark this SQL query