tencent cloud

Tencent Cloud WeData

TDSQL PostgreSQL

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-11-01 16:26:14
Note:
This project needs to bind the data source of TDSQL for PostgreSQL.

Sample code

-- Create schema
create schema if not exists wedata_demo_schema ;

-- Create a table
CREATE TABLE wedata_demo_schema.user_info (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL
);

-- View tables in the corresponding schema
SELECT table_name
FROM information_schema.tables
WHERE table_schema = 'wedata_demo_schema';

-- Insert data
INSERT INTO wedata_demo_schema.user_info (name) VALUES ('Alice'), ('Bob');

-- View data
select * from wedata_demo_schema.user_info;


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백