Skip to content

SQL Commands

Create Database

shell
CREATE DATABASE <databasename>;

Delete Database

shell
DROP DATABASE <databasename>;

List All Databases

shell
SHOW DATABASES;

Select Database

shell
use <databasename>;

Query Data with Sort

shell
SELECT * FROM <tablename> ORDER BY <colunm> DESC/ASC limt 10;