From 6118d5291ceafbe4f303ff6c7a269ac6dbde81d2 Mon Sep 17 00:00:00 2001 From: IrisWan <150207222+WanYixian@users.noreply.github.com> Date: Tue, 24 Dec 2024 10:25:03 +0800 Subject: [PATCH] Update information-schema.mdx (#155) --- sql/system-catalogs/information-schema.mdx | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/sql/system-catalogs/information-schema.mdx b/sql/system-catalogs/information-schema.mdx index 5e6f98db..08707df8 100644 --- a/sql/system-catalogs/information-schema.mdx +++ b/sql/system-catalogs/information-schema.mdx @@ -71,10 +71,10 @@ It contains the following columns. | Column | Type | Description | | :--------------- | :------ | :---------------------------------------- | -| table\_catalog | varchar | Name of the current database. | -| table\_schema | varchar | Name of the schema that contains the view. | -| table\_name | varchar | Name of the view. | -| view\_definition | varchar | SQL statement that defines the view. | +| `table_catalog` | varchar | Name of the current database. | +| `table_schema` | varchar | Name of the schema that contains the view. | +| `table_name` | varchar | Name of the view. | +| `view_definition` | varchar | SQL statement that defines the view. | **TEMPORARY LIMITATION** @@ -88,15 +88,16 @@ The `information_schema.columns` view contains information about columns of all | Column | Type | Description | | :--------------------- | :------ | :----------------------------------------------------------------------------------------------------------------------------------- | -| table\_catalog | varchar | Name of the current database. | -| table\_schema | varchar | Name of the schema that contains the table, sink, view, or materialized view. The default schema for user-created objects is public. | -| table\_name | varchar | Name of the table, sink, view, or materialized view | -| column\_name | varchar | Name of the column | -| ordinal\_position | int32 | Ordinal position of the column within the table (count starts at 1) | -| is\_nullable | varchar | YES if the column is possibly nullable; NO if it is known not nullable. | -| data\_type | varchar | Data type of the column | -| is\_generated | varchar | ALWAYS if the column has a generated value; NEVER if it doesn't. | -| generation\_expression | varchar | Expression for generating values when is\_generated is ALWAYS. | +| `table_catalog` | varchar | Name of the current database. | +| `table_schema` | varchar | Name of the schema that contains the table, sink, view, or materialized view. The default schema for user-created objects is public. | +| `table_name` | varchar | Name of the table, sink, view, or materialized view. | +| `column_name` | varchar | Name of the column. | +| `ordinal_position` | int32 | Ordinal position of the column within the table (count starts at 1). | +| `is_nullable` | varchar | YES if the column is possibly nullable; NO if it is known not nullable. | +| `data_type` | varchar | Data type of the column. | +| `is_generated` | varchar | ALWAYS if the column has a generated value; NEVER if it doesn't. | +| `generation_expression` | varchar | Expression for generating values when `is_generated` is ALWAYS. | +| `_rw_timestamp` | timestamptz | Internal timestamp indicating when each row was last updated. Only available in the batch query.| ## How to use the information schema views?