Skip to content

Commit

Permalink
Merge pull request #37 from nocaway/master
Browse files Browse the repository at this point in the history
Proofreading and fixing typos
  • Loading branch information
nocaway authored Mar 12, 2019
2 parents 64daffb + a6d38ca commit b2e6d01
Show file tree
Hide file tree
Showing 49 changed files with 140 additions and 239 deletions.
13 changes: 6 additions & 7 deletions docs/content/latest/api/ysql/commands/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ isTocNested: true
showAsideToc: true
---

The following table lists all SQL commands that are supported by YugaByte Database.
The following table lists all YSQL commands that are supported by YugaByte Database.

| Statement | Description |
|-----------|-------------|
Expand All @@ -36,16 +36,15 @@ The following table lists all SQL commands that are supported by YugaByte Databa
| [`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 |
| [`EXECUTE`](perf_execute) | Execute a prepared statement |
| [`EXPLAIN`](perf_explain) | Display execution plan for a statement |
| [`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 |
| [`PREPARE`](perf_prepare) | Prepare a statement |
| [`RESET`](cmd_reset) | Reset a parameter to factory settings |
| [`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`](txn_set_constraints) | Set constraints on current transaction|
| [`SET CONSTRAINTS`](txn_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 |
Expand Down
33 changes: 17 additions & 16 deletions docs/content/latest/api/ysql/commands/cmd_copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,29 @@ copy_to ::= COPY { table_name [ ( column_name [, ...] ) ] | ( query ) }
[ [ WITH ] ( option [, ...] ) ]
copy_option ::=
{ FORMAT format_name |
OIDS [ boolean ] |
FREEZE [ boolean ] |
DELIMITER 'delimiter_character' |
NULL 'null_string' |
HEADER [ boolean ] |
QUOTE 'quote_character' |
ESCAPE 'escape_character' |
FORCE_QUOTE { ( column_name [, ...] ) | * } |
FORCE_NOT_NULL ( column_name [, ...] ) |
FORCE_NULL ( column_name [, ...] ) |
ENCODING 'encoding_name' }
{ FORMAT format_name
| OIDS [ boolean ]
| FREEZE [ boolean ]
| DELIMITER 'delimiter_character'
| NULL 'null_string'
| HEADER [ boolean ]
| QUOTE 'quote_character'
| ESCAPE 'escape_character'
| FORCE_QUOTE { ( column_name [, ...] ) | * }
| FORCE_NOT_NULL ( column_name [, ...] )
| FORCE_NULL ( column_name [, ...] )
| ENCODING 'encoding_name' }
```

Where

- `table_name` specifies the table to be copied.

- `column_name` speciies list of columns to be copied.
- `column_name` specifies column to be copied.

- query can be either SELECT, VALUES, INSERT, UPDATE or DELETE whose results will be copied to files. RETURNING clause must be provided for INSERT, UPDATE and DELETE commands.
- 'query' can be either SELECT, VALUES, INSERT, UPDATE or DELETE whose results will be copied to files. RETURNING clause must be provided for INSERT, UPDATE and DELETE commands.

- filename specifies an absolute or relative path of a file to be copied.
- 'filename' specifies an absolute or relative path of a file to be copied.

## Examples

Expand All @@ -70,4 +71,4 @@ Where
- `COPY FROM` can be used with either tables, foreign tables, or views.

## See Also
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
2 changes: 1 addition & 1 deletion docs/content/latest/api/ysql/commands/cmd_reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Where
## See Also
[`SHOW`](../cmd_show)
[`SET`](../cmd_set)
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
5 changes: 3 additions & 2 deletions docs/content/latest/api/ysql/commands/cmd_set.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ showAsideToc: true

## Synopsis

`SET` command update a run-time control parameter.
`SET` command updates a run-time control parameter.

## Syntax

Expand All @@ -29,6 +29,7 @@ SET [ SESSION | LOCAL ] { configuration_parameter { TO | = } { value | 'value' |
```

Where

- `SESSION` option specifies that the command affects only the current session.

- `LOCAL` option specifies that the command affect only the current transaction. After COMMIT or ROLLBACK, the session-level setting takes effect again.
Expand All @@ -44,4 +45,4 @@ Where
## See Also
[`SHOW`](../cmd_show)
[`RESET`](../cmd_reset)
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
4 changes: 3 additions & 1 deletion docs/content/latest/api/ysql/commands/cmd_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ showAsideToc: true

## Synopsis

`SHOW` command displays the value of specified parameters.

## Syntax

### Diagram
Expand All @@ -36,4 +38,4 @@ Where
## See Also
[`SET`](../cmd_set)
[`RESET`](../cmd_reset)
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
2 changes: 1 addition & 1 deletion docs/content/latest/api/ysql/commands/dcl_create_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ postgres=# REVOKE ALL ON DATABASE postgres FROM John;

## See Also

[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
2 changes: 1 addition & 1 deletion docs/content/latest/api/ysql/commands/ddl_alter_db.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ where

## See Also
[`CREATE DATABASE`](../ddl_create_database)
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
22 changes: 12 additions & 10 deletions docs/content/latest/api/ysql/commands/ddl_alter_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ showAsideToc: true

### Diagrams

### alter_table
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="744" height="78" viewbox="0 0 744 78"><path class="connector" d="M0 50h5m57 0h10m57 0h30m30 0h10m61 0h20m-136 0q5 0 5 5v8q0 5 5 5h111q5 0 5-5v-8q0-5 5-5m5 0h30m51 0h20m-86 0q5 0 5 5v8q0 5 5 5h61q5 0 5-5v-8q0-5 5-5m5 0h10m55 0h30m26 0h20m-61 0q5 0 5 5v8q0 5 5 5h36q5 0 5-5v-8q0-5 5-5m5 0h30m-5 0q-5 0-5-5v-19q0-5 5-5h59m24 0h59q5 0 5 5v19q0 5-5 5m-5 0h30m25 0h5"/><rect class="literal" x="5" y="34" width="57" height="24" rx="7"/><text class="text" x="15" y="50">ALTER</text><rect class="literal" x="72" y="34" width="57" height="24" rx="7"/><text class="text" x="82" y="50">TABLE</text><rect class="literal" x="159" y="34" width="30" height="24" rx="7"/><text class="text" x="169" y="50">IF</text><rect class="literal" x="199" y="34" width="61" height="24" rx="7"/><text class="text" x="209" y="50">EXISTS</text><rect class="literal" x="310" y="34" width="51" height="24" rx="7"/><text class="text" x="320" y="50">ONLY</text><a xlink:href="../grammar_diagrams#name"><rect class="rule" x="391" y="34" width="55" height="24"/><text class="text" x="401" y="50">name</text></a><rect class="literal" x="476" y="34" width="26" height="24" rx="7"/><text class="text" x="486" y="50">*</text><rect class="literal" x="606" y="5" width="24" height="24" rx="7"/><text class="text" x="616" y="21">,</text><a xlink:href="../grammar_diagrams#alter-table-action"><rect class="rule" x="552" y="34" width="132" height="24"/><text class="text" x="562" y="50">alter_table_action</text></a><a xlink:href="../grammar_diagrams#]"><rect class="rule" x="714" y="34" width="25" height="24"/><text class="text" x="724" y="50">]</text></a></svg>
#### alter_table
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="558" height="78" viewbox="0 0 558 78"><path class="connector" d="M0 50h5m57 0h10m57 0h30m51 0h20m-86 0q5 0 5 5v8q0 5 5 5h61q5 0 5-5v-8q0-5 5-5m5 0h10m55 0h30m26 0h20m-61 0q5 0 5 5v8q0 5 5 5h36q5 0 5-5v-8q0-5 5-5m5 0h30m-5 0q-5 0-5-5v-19q0-5 5-5h59m24 0h59q5 0 5 5v19q0 5-5 5m-5 0h25"/><rect class="literal" x="5" y="34" width="57" height="24" rx="7"/><text class="text" x="15" y="50">ALTER</text><rect class="literal" x="72" y="34" width="57" height="24" rx="7"/><text class="text" x="82" y="50">TABLE</text><rect class="literal" x="159" y="34" width="51" height="24" rx="7"/><text class="text" x="169" y="50">ONLY</text><a xlink:href="../grammar_diagrams#name"><rect class="rule" x="240" y="34" width="55" height="24"/><text class="text" x="250" y="50">name</text></a><rect class="literal" x="325" y="34" width="26" height="24" rx="7"/><text class="text" x="335" y="50">*</text><rect class="literal" x="455" y="5" width="24" height="24" rx="7"/><text class="text" x="465" y="21">,</text><a xlink:href="../grammar_diagrams#alter-table-action"><rect class="rule" x="401" y="34" width="132" height="24"/><text class="text" x="411" y="50">alter_table_action</text></a></svg>

#### alter_table_action
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="631" height="204" viewbox="0 0 631 204"><path class="connector" d="M0 21h25m46 0h30m71 0h20m-106 0q5 0 5 5v8q0 5 5 5h81q5 0 5-5v-8q0-5 5-5m5 0h30m30 0h10m45 0h10m61 0h20m-191 0q5 0 5 5v8q0 5 5 5h166q5 0 5-5v-8q0-5 5-5m5 0h10m106 0h10m82 0h20m-611 39q0 5 5 5h5m54 0h30m71 0h20m-106 0q5 0 5 5v8q0 5 5 5h81q5 0 5-5v-8q0-5 5-5m5 0h30m30 0h10m61 0h20m-136 0q5 0 5 5v8q0 5 5 5h111q5 0 5-5v-8q0-5 5-5m5 0h10m106 0h30m77 0h20m-107 24q0 5 5 5h5m77 0h5q5 0 5-5m-102-24q5 0 5 5v32q0 5 5 5h87q5 0 5-5v-32q0-5 5-5m5 0h17q5 0 5-5m-601 63q0 5 5 5h5m46 0h10m122 0h408q5 0 5-5m-606-102q5 0 5 5v126q0 5 5 5h5m54 0h10m96 0h30m30 0h10m61 0h20m-136 0q5 0 5 5v8q0 5 5 5h111q5 0 5-5v-8q0-5 5-5m5 0h10m125 0h30m77 0h20m-107 24q0 5 5 5h5m77 0h5q5 0 5-5m-102-24q5 0 5 5v32q0 5 5 5h87q5 0 5-5v-32q0-5 5-5m5 0h13q5 0 5-5v-126q0-5 5-5m5 0h5"/><rect class="literal" x="25" y="5" width="46" height="24" rx="7"/><text class="text" x="35" y="21">ADD</text><rect class="literal" x="101" y="5" width="71" height="24" rx="7"/><text class="text" x="111" y="21">COLUMN</text><rect class="literal" x="222" y="5" width="30" height="24" rx="7"/><text class="text" x="232" y="21">IF</text><rect class="literal" x="262" y="5" width="45" height="24" rx="7"/><text class="text" x="272" y="21">NOT</text><rect class="literal" x="317" y="5" width="61" height="24" rx="7"/><text class="text" x="327" y="21">EXISTS</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="408" y="5" width="106" height="24"/><text class="text" x="418" y="21">column_name</text></a><a xlink:href="../grammar_diagrams#data-type"><rect class="rule" x="524" y="5" width="82" height="24"/><text class="text" x="534" y="21">data_type</text></a><rect class="literal" x="25" y="49" width="54" height="24" rx="7"/><text class="text" x="35" y="65">DROP</text><rect class="literal" x="109" y="49" width="71" height="24" rx="7"/><text class="text" x="119" y="65">COLUMN</text><rect class="literal" x="230" y="49" width="30" height="24" rx="7"/><text class="text" x="240" y="65">IF</text><rect class="literal" x="270" y="49" width="61" height="24" rx="7"/><text class="text" x="280" y="65">EXISTS</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="361" y="49" width="106" height="24"/><text class="text" x="371" y="65">column_name</text></a><rect class="literal" x="497" y="49" width="77" height="24" rx="7"/><text class="text" x="507" y="65">RESTRICT</text><rect class="literal" x="497" y="78" width="77" height="24" rx="7"/><text class="text" x="507" y="94">CASCADE</text><rect class="literal" x="25" y="112" width="46" height="24" rx="7"/><text class="text" x="35" y="128">ADD</text><a xlink:href="../grammar_diagrams#table-constraint"><rect class="rule" x="81" y="112" width="122" height="24"/><text class="text" x="91" y="128">table_constraint</text></a><rect class="literal" x="25" y="141" width="54" height="24" rx="7"/><text class="text" x="35" y="157">DROP</text><rect class="literal" x="89" y="141" width="96" height="24" rx="7"/><text class="text" x="99" y="157">CONSTRAINT</text><rect class="literal" x="215" y="141" width="30" height="24" rx="7"/><text class="text" x="225" y="157">IF</text><rect class="literal" x="255" y="141" width="61" height="24" rx="7"/><text class="text" x="265" y="157">EXISTS</text><a xlink:href="../grammar_diagrams#constraint-name"><rect class="rule" x="346" y="141" width="125" height="24"/><text class="text" x="356" y="157">constraint_name</text></a><rect class="literal" x="501" y="141" width="77" height="24" rx="7"/><text class="text" x="511" y="157">RESTRICT</text><rect class="literal" x="501" y="170" width="77" height="24" rx="7"/><text class="text" x="511" y="186">CASCADE</text></svg>
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="520" height="277" viewbox="0 0 520 277"><path class="connector" d="M0 21h25m46 0h30m71 0h20m-106 0q5 0 5 5v8q0 5 5 5h81q5 0 5-5v-8q0-5 5-5m5 0h10m106 0h10m82 0h115m-500 39q0 5 5 5h5m71 0h10m36 0h10m93 0h255q5 0 5-5m-490 29q0 5 5 5h5m54 0h30m71 0h20m-106 0q5 0 5 5v8q0 5 5 5h81q5 0 5-5v-8q0-5 5-5m5 0h10m106 0h30m77 0h20m-107 24q0 5 5 5h5m77 0h5q5 0 5-5m-102-24q5 0 5 5v32q0 5 5 5h87q5 0 5-5v-32q0-5 5-5m5 0h57q5 0 5-5m-490 63q0 5 5 5h5m46 0h10m122 0h297q5 0 5-5m-490 29q0 5 5 5h5m54 0h10m96 0h10m125 0h30m77 0h20m-107 24q0 5 5 5h5m77 0h5q5 0 5-5m-102-24q5 0 5 5v32q0 5 5 5h87q5 0 5-5v-32q0-5 5-5m5 0h53q5 0 5-5m-495-160q5 0 5 5v218q0 5 5 5h5m71 0h30m71 0h20m-106 0q5 0 5 5v8q0 5 5 5h81q5 0 5-5v-8q0-5 5-5m5 0h10m106 0h10m36 0h10m106 0h5q5 0 5-5v-218q0-5 5-5m5 0h5"/><rect class="literal" x="25" y="5" width="46" height="24" rx="7"/><text class="text" x="35" y="21">ADD</text><rect class="literal" x="101" y="5" width="71" height="24" rx="7"/><text class="text" x="111" y="21">COLUMN</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="202" y="5" width="106" height="24"/><text class="text" x="212" y="21">column_name</text></a><a xlink:href="../grammar_diagrams#data-type"><rect class="rule" x="318" y="5" width="82" height="24"/><text class="text" x="328" y="21">data_type</text></a><rect class="literal" x="25" y="49" width="71" height="24" rx="7"/><text class="text" x="35" y="65">RENAME</text><rect class="literal" x="106" y="49" width="36" height="24" rx="7"/><text class="text" x="116" y="65">TO</text><a xlink:href="../grammar_diagrams#table-name"><rect class="rule" x="152" y="49" width="93" height="24"/><text class="text" x="162" y="65">table_name</text></a><rect class="literal" x="25" y="78" width="54" height="24" rx="7"/><text class="text" x="35" y="94">DROP</text><rect class="literal" x="109" y="78" width="71" height="24" rx="7"/><text class="text" x="119" y="94">COLUMN</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="210" y="78" width="106" height="24"/><text class="text" x="220" y="94">column_name</text></a><rect class="literal" x="346" y="78" width="77" height="24" rx="7"/><text class="text" x="356" y="94">RESTRICT</text><rect class="literal" x="346" y="107" width="77" height="24" rx="7"/><text class="text" x="356" y="123">CASCADE</text><rect class="literal" x="25" y="141" width="46" height="24" rx="7"/><text class="text" x="35" y="157">ADD</text><a xlink:href="../grammar_diagrams#table-constraint"><rect class="rule" x="81" y="141" width="122" height="24"/><text class="text" x="91" y="157">table_constraint</text></a><rect class="literal" x="25" y="170" width="54" height="24" rx="7"/><text class="text" x="35" y="186">DROP</text><rect class="literal" x="89" y="170" width="96" height="24" rx="7"/><text class="text" x="99" y="186">CONSTRAINT</text><a xlink:href="../grammar_diagrams#constraint-name"><rect class="rule" x="195" y="170" width="125" height="24"/><text class="text" x="205" y="186">constraint_name</text></a><rect class="literal" x="350" y="170" width="77" height="24" rx="7"/><text class="text" x="360" y="186">RESTRICT</text><rect class="literal" x="350" y="199" width="77" height="24" rx="7"/><text class="text" x="360" y="215">CASCADE</text><rect class="literal" x="25" y="233" width="71" height="24" rx="7"/><text class="text" x="35" y="249">RENAME</text><rect class="literal" x="126" y="233" width="71" height="24" rx="7"/><text class="text" x="136" y="249">COLUMN</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="227" y="233" width="106" height="24"/><text class="text" x="237" y="249">column_name</text></a><rect class="literal" x="343" y="233" width="36" height="24" rx="7"/><text class="text" x="353" y="249">TO</text><a xlink:href="../grammar_diagrams#column-name"><rect class="rule" x="389" y="233" width="106" height="24"/><text class="text" x="399" y="249">column_name</text></a></svg>

#### table_constraint
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="790" height="78" viewbox="0 0 790 78"><path class="connector" d="M0 21h25m96 0h10m125 0h20m-266 0q5 0 5 5v8q0 5 5 5h241q5 0 5-5v-8q0-5 5-5m5 0h30m60 0h10m25 0h10m88 0h10m25 0h30m38 0h10m67 0h20m-150 0q5 0 5 5v8q0 5 5 5h125q5 0 5-5v-8q0-5 5-5m5 0h86m-494 0q5 0 5 5v34q0 5 5 5h5m72 0h10m42 0h10m25 0h10m113 0h10m25 0h10m132 0h5q5 0 5-5v-34q0-5 5-5m5 0h5"/><rect class="literal" x="25" y="5" width="96" height="24" rx="7"/><text class="text" x="35" y="21">CONSTRAINT</text><a xlink:href="../grammar_diagrams#constraint-name"><rect class="rule" x="131" y="5" width="125" height="24"/><text class="text" x="141" y="21">constraint_name</text></a><rect class="literal" x="306" y="5" width="60" height="24" rx="7"/><text class="text" x="316" y="21">CHECK</text><rect class="literal" x="376" y="5" width="25" height="24" rx="7"/><text class="text" x="386" y="21">(</text><a xlink:href="../grammar_diagrams#expression"><rect class="rule" x="411" y="5" width="88" height="24"/><text class="text" x="421" y="21">expression</text></a><rect class="literal" x="509" y="5" width="25" height="24" rx="7"/><text class="text" x="519" y="21">)</text><rect class="literal" x="564" y="5" width="38" height="24" rx="7"/><text class="text" x="574" y="21">NO</text><rect class="literal" x="612" y="5" width="67" height="24" rx="7"/><text class="text" x="622" y="21">INHERIT</text><rect class="literal" x="306" y="49" width="72" height="24" rx="7"/><text class="text" x="316" y="65">PRIMARY</text><rect class="literal" x="388" y="49" width="42" height="24" rx="7"/><text class="text" x="398" y="65">KEY</text><rect class="literal" x="440" y="49" width="25" height="24" rx="7"/><text class="text" x="450" y="65">(</text><a xlink:href="../grammar_diagrams#column-names"><rect class="rule" x="475" y="49" width="113" height="24"/><text class="text" x="485" y="65">column_names</text></a><rect class="literal" x="598" y="49" width="25" height="24" rx="7"/><text class="text" x="608" y="65">)</text><a xlink:href="../grammar_diagrams#index-parameters"><rect class="rule" x="633" y="49" width="132" height="24"/><text class="text" x="643" y="65">index_parameters</text></a></svg>
Expand All @@ -34,13 +34,15 @@ showAsideToc: true

### Grammar
```
alter_table ::= ALTER TABLE [ IF EXISTS ] [ ONLY ] name [ * ] alter_table_action [, ... ]
alter_table ::= ALTER TABLE [ ONLY ] name [ * ] alter_table_action [, ... ]
alter_table_action ::=
{ ADD [ COLUMN ] [ IF NOT EXISTS ] column_name data_type |
DROP [ COLUMN ] [ IF EXISTS ] column_name [ RESTRICT | CASCADE ] |
ADD table_constraint |
DROP CONSTRAINT [ IF EXISTS ] constraint_name [ RESTRICT | CASCADE ] }
{ ADD [ COLUMN ] column_name data_type
| RENAME TO table_name
| DROP [ COLUMN ] column_name [ RESTRICT | CASCADE ]
| ADD table_constraint
| DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ]
| RENAME [ COLUMN ] column_name TO column_name } ;
table_constraint ::=
CONSTRAINT constraint_name { CHECK ( expression ) [ NO INHERIT ] |
Expand All @@ -49,7 +51,7 @@ table_constraint ::=

## Semantics

- An error is raised if specified table does not exist unless `IF EXIST` is used.
- An error is raised if specified table does not exist.
- `ADD COLUMN` adds new column.
- `DROP COLUMN` drops existing column.
- `ADD table_constraint` adds new table_constraint.
Expand All @@ -59,4 +61,4 @@ table_constraint ::=
## See Also
[`CREATE TABLE`](../ddl_create_table)
[`DROP TABLE`](../ddl_drop_table)
[Other PostgreSQL Statements](..)
[Other YSQL Statements](..)
Loading

0 comments on commit b2e6d01

Please sign in to comment.