Help Center/ GaussDB/ Developer Guide(Distributed_V2.0-8.x)/ SQL Reference/ SQL Syntax/ S/ SELECT/ Simplified Queries
Updated on 2025-08-19 GMT+08:00
Simplified Queries
Uses the TABLE syntax to directly specify a particular table for query.
The operation is equivalent to performing a simple query for all table information using the SELECT syntax.
-- Create a table. gaussdb=# CREATE TABLE t1(c1 int, c2 int, c3 int); -- Insert data. gaussdb=# INSERT INTO t1 VALUES (1,2,3); c1 | c2 | c3 ----+----+---- 1 | 2 | 3 (1 row) -- Query data in the table. gaussdb=# TABLE t1; c1 | c2 | c3 ----+----+---- 1 | 2 | 3 (1 row) -- Drop. gaussdb=# DROP TABLE t1;
Parent topic: SELECT
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.