-
Notifications
You must be signed in to change notification settings - Fork 664
sql
- [Single and multiple SQL statements](Multiple Statements)
- [Standard](Standard Interface) and [fluent (like LINQ)](Fluent Interface) interface
- [Case-sensitive keywords](Case Sensitive)
Data query
Data manipulation
Data definition
- [CREATE TABLE](Create Table)
- [ALTER TABLE](Alter Table)
- [DROP TABLE](Drop Table)
Database
- [USE DATABASE](Use Database)
- [CREATE DATABASE](Create Database)
- [DROP DATABASE](Drop Database)
External database
- [ATTACH DATABASE](Attach Database)
- [DETACH DATABASE](Detach Database)
- [BEGIN TRANSACTION](Begin Transaction)
- [COMMIT TRANSACTION](Commit Transaction)
- ROLLBACK TRANSACTION
Show
- [SHOW DATABASES](Show Databases)
- [SHOW TABLES](Show Tables)
- [SHOW CREATE TABLE](Show Create Table)
Program
Debug
Information
-
ALTER TABLE
-
[ALTER TABLE ADD COLUMN](Add Column)
-
[ALTER TABLE MODIFY COLUMN](Modify Column)
-
[ALTER TABLE DROP COLUMN](Drop Column)
-
[ALTER TABLE RENAME TABLE](Rename Table)
-
[BEGIN TRANSACTION](Begin Transaction)
-
[COMMIT TRANSACTION](Commit Transaction)
-
CREATE
-
[CREATE DATABASE](Create Database)
-
[CREATE TABLE](Create Table)
-
Column Types
- JavaScript data types
- String
- Number
- Boolean
- Date and ISODate
- Emun
- ANSI SQL types
- SQLite, Oracle, MySQL, SQL Server, Postgres data types mapping
- JavaScript data types
-
Column constraints
- PRIMARY KEY
- FOREIGN KEY
- DEFAULT
- NULL / NOT NULL
- AUTO_INCREMENT, IDENTITY
- CHECK
-
DROP
-
[DROP DATABASE](Drop Database)
-
[DROP TABLE](Drop Table)
-
INSERT
-
[INSERT SELECT](Insert Select)
-
[INSERT VALUES](Insert Values)
-
[INSERT DEFAULT VALUES](Insert Default Values)
-
[RENAME TABLE](Rename Table)
-
[ROLLBACK TRANSACTION](Rollback Transaction)
-
[GROUP BY](Group By)
-
[ORDER BY](Order By)
-
[UNION ALL](Union All)
-
SHOW
-
[SHOW CREATE TABLE](Show Create Table)
-
[SHOW COLUMNS](Show Columns)
-
[SHOW DATABASES](Show Databases)
-
[SHOW TABLES](Show Tables)
-
[USE DATABASE](Use Database)
-
Number
-
-
-
- / %
-
-
-
String
-
-
Comparing
-
= != < <= > >=
-
BETWEEN, NOT BETWEEN
-
Null
- IS NULL, IS NOT NULL
-
SQL-Functions
-
Complex Operators
- EXISTS, NOT EXISTS
- IN, NOT IN
- SOME, ANY
- ALL
-
[FIRST()](First
-
Grouping functions
-
[GROUPING SETS()](Grouping Sets)
-
[User-defined SQL functions](User Defined Functions)
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo