Help Center/
GaussDB/
Developer Guide(Distributed_V2.0-8.x)/
SQL Reference/
SQL Syntax/
S/
SELECT/
Simplified Queries
Updated on 2025-05-29 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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot