SELECT
:
Extract data from a database.
UPDATE
:
Update data in a database.
DELETE
:
Delete data from a database.
INSERT INTO
:
Insert new data into a database.
CREATE DATABASE
:
Create a new database.
CREATE TABLE
:
Create a new table.
ALTER TABLE
:
Modify a table.
DROP TABLE
:
Delete a table.
CREATE INDEX
:
Create an index (search key).
DROP INDEX
:
Delete an index.
For security reasons, the following demonstration may only work in Chrome.
Result:Click “Run SQL” to execute the SQL statement above.
W3Schools has created an SQL database in your browser.
The menu to the right displays the database, and will reflect any changes.
Feel free to experiment with any SQL statement.
You can restore the database at any time.
|
The Database includes:
|
The Database includes:
|