This MySQL playground allows you to test SQL online.You can test MySQL queries online (MySQL 8.0).
It is an MySQL editor online, it does not require installation. It can help to make small tests easily in a few seconds.
/!\ The data (tables, index, ...) that you create are deleted after approximately 30 minutes of inactivity.
It is not possible to use transactions (The connection is not persistent).
Typing help / Autocomplete: Ctrl-space for autocomplete.
Enter your SQL query in the editor, finally click on "Run" to execute it. The query result will be displayed below the editor .
You can also run only one query entered in the editor. To do this, simply select it before clicking on "Run".
If you want to export the results in csv format, click on "Export".
The sql queries entered in the editor are saved so that you will find them during your next visits. Warning, this is a local backup in your browser, it can be deleted at any time.
You can share SQL snippet. Click on "Share snippet" to share your SQL code.
Your database will not be backed up, this only saves the editor code! This is useful for sharing SQL code.
You can dump MySQL database to SQL file. Click on "Database > Dump DB to SQL" to export your database.
MySQL is an open-source relational database, and is also available under proprietary licenses.MySQL is used by many database-driven web applications, and also used by many popular websites!
This small tool allows you to execute queries (MySQL compiler). You can test the queries with a syntax specific to Mysql.
You can quickly test table structures, and if you are satisfied with the result, you can export your database to SQL format.
This playground gives you access to a database, with persistent data for about thirty minutes. As long as you remain active, the data will be retained.
This tool also allows to share sql queries (Useful for blogs, forums ...).
Your requests pass through the network, avoid playing with production data.You are advised not to enter passwords, authentication tokens, etc.
Comments
James-2020-10-22 13:11
Looks like some permissions need to be updated before we can test out foreign keys.
Cyril (Admin)-2020-10-22 13:25
Mariana-2020-11-03 12:43
I have problem with:
select top (5)
from....
The error is: execute command denied to user ''@'localhost' for routine 'top'
Cyril (Admin)-2020-11-03 12:58
top is not supported by MySQL. You can use LIMIT:
Select * from MyTable Limit 3
Mariana-2020-11-03 13:13
Dream-2020-12-10 19:46
modium sudheeshna-2020-12-15 11:03
Cyril (Admin)-2021-01-13 15:38
Pritam-2020-12-18 07:28
Everything else is awesome. Thank you very much for this webiste.
Night_Gamer_01-2021-01-19 19:02
Rade-2021-02-05 16:07
Select one:
a. Must be composed by just one attribute
b. Can be NULL, but when used it must refer to existing values defined in other entities/relationships
c. Can never be NULL
d. Must be a string
Bhavadharini-2021-02-17 04:25
rollback is not working. After updating the table, when i give rollback it was not roll back to the previous state.
Cyril (Admin)-2021-02-17 16:56
sara lazeez-2021-03-17 15:50
Emma-2021-04-01 11:57
Has anyone experienced this and how did you solve it?
sam -2021-04-04 14:06
Cyril (admin)-2021-05-12 15:41
You must have a create table query in the editor. You must select your query to run only this one.
PM-2021-04-15 16:37
Cyril (admin)-2021-05-12 15:38
Henk Meijers-2021-04-27 11:44
I imported a simplified Northwind database.
When I do a select * from 2 tables then the column id, present in both tables, is mixed up.
Example: select * from orders inner join order_details on orders.id = order_details.order_id
First column in the grid should be orders.id but printed is the order_details.id.
The second id column is omitted.
parinita-2021-05-12 08:26
Cyril (admin)-2021-05-12 15:44
Munal-2021-12-08 21:35
David-2022-02-04 11:44
Sheryan-2022-03-14 15:17
Seth-2022-03-22 15:42
is a "timeout" occurring in the connection, or that the tool is not functional. The following series of queries will expectedly
provide no result, but I would expect that the system response would be something like no results returned or nothing to show, but
when run as the first query, nothing happens. When I change the SELECT query to return a result, I get the (undesired but expected)
result.
Initial query:
DROP TABLE IF EXISTS test;
CREATE TABLE test (
test_id int(11) NOT NULL auto_increment,
test_date_available datetime default NULL,
PRIMARY KEY (test_id)
) ENGINE=MyISAM;
INSERT test (test_date_available) VALUES ('0001-01-01');
SELECT test_date_available FROM test WHERE test_date_available > '0001-01-01';
The above causes no response.
If I then run:
SELECT test_date_available FROM test WHERE test_date_available >= '0001-01-01';
I get one row.
Running this again:
SELECT test_date_available FROM test WHERE test_date_available > '0001-01-01';
The above causes no change in the response and (incorrectly) appears as if there is still one row/record returned.
BTW, I am aware of the potential issues with a date being stored as '0001-01-01' and is one reason that I was trying to use this
tool so that I could find one or more ways to address this occurrence from an older database that is to be used in a new(er) environment.
cyril (admin)-2022-04-06 19:42