-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from nocaway/master
Initial YSQL document for release 1.2
- Loading branch information
Showing
82 changed files
with
6,213 additions
and
2,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Commands | ||
description: Overview on YSQL Commands | ||
summary: Overview on YSQL Commands | ||
image: /images/section_icons/api/pgsql.png | ||
menu: | ||
latest: | ||
identifier: api-ysql-commands | ||
parent: api-ysql | ||
weight: 4100 | ||
aliases: | ||
- /latest/api/ysql/commands/ | ||
isTocNested: true | ||
showAsideToc: true | ||
--- | ||
|
||
The following table lists all SQL commands that are supported by YugaByte Database. | ||
|
||
| Statement | Description | | ||
|-----------|-------------| | ||
| [`ABORT`](txn_abort) | Rollback a transaction | | ||
| [`ALTER DATABASE`](ddl_alter_db) | Change database definition | | ||
| [`ALTER TABLE`](ddl_alter_table) | Change table definition | | ||
| [`BEGIN TRANSACTION`](txn_begin) | Start a transaction | | ||
| [`COMMIT`](txn_commit) | Commit a transaction | | ||
| [`COPY`](cmd_copy) | Copy data between tables and files | | ||
| [`CREATE DATABASE`](ddl_create_database) | Create a new database | | ||
| [`CREATE INDEX`](ddl_create_index) | Create a new index | | ||
| [`CREATE SCHEMA`](ddl_create_schema) | Create a new schema (namespace) | | ||
| [`CREATE SEQUENCE`](ddl_create_sequence) | Create a new sequence generator | | ||
| [`CREATE TABLE`](ddl_create_table) | Create a new table | | ||
| [`CREATE TABLE AS`](ddl_create_table_as) | Create a new table | | ||
| [`CREATE USER`](dcl_create_user) | Create a new user (role) | | ||
| [`CREATE VIEW`](ddl_create_view) | Create a new view | | ||
| [`DEALLOCATE`](txn_deallocate) | Deallocate a prepared statement | | ||
| [`DELETE`](dml_delete) | Delete rows from a table | | ||
| [`DROP DATABASE`](ddl_drop_database) | Delete a database and associated objects | | ||
| [`DROP SEQUENCE`](ddl_drop_sequence) | Delete a sequence generator | | ||
| [`DROP TABLE`](ddl_drop_table) | Delete a table from a database | | ||
| [`END TRANSACTION`](txn_end) | Commit a transaction | | ||
| [`EXECUTE`](perf_execute) | Insert rows into a table | | ||
| [`EXPLAIN`](perf_explain) | Insert rows into a table | | ||
| [`GRANT`](dcl_grant) | Grant permissions | | ||
| [`INSERT`](dml_insert) | Insert rows into a table | | ||
| [`LOCK`](txn_lock) | Lock a table | | ||
| [`PREPARE`](perf_prepare) | Select rows from a table | | ||
| [`RESET`](cmd_reset) | Reset a variable to factory settings | | ||
| [`REVOKE`](dcl_revoke) | Revoke permissions | | ||
| [`ROLLBACK`](txn_rollback) | Rollback a transaction | | ||
| [`SELECT`](dml_select) | Select rows from a table | | ||
| [`SET`](cmd_set) | Set a system, session, or transactional parameter | | ||
| [`SET CONSTRAINTS`](cmd_set_constraints) | Set constraints on current transaction| | ||
| [`SET TRANSACTION`](txn_set) | Set transaction behaviors | | ||
| [`SHOW`](cmd_show) | Show value of a system, session, or transactional parameter | | ||
| [`SHOW TRANSACTION`](txn_show) | Show properties of a transaction | | ||
| [`TRUNCATE`](ddl_truncate) | Clear all rows from a table | | ||
| [`UPDATE`](dml_update) | Update rows in a table | |
Oops, something went wrong.