-- Create schemacreate schema if not exists wedata_demo_schema ;-- Create a tableCREATE TABLE wedata_demo_schema.user_info (id SERIAL PRIMARY KEY,name VARCHAR(255) NOT NULL);-- View tables in the corresponding schemaSELECT table_nameFROM information_schema.tablesWHERE table_schema = 'wedata_demo_schema';-- Insert dataINSERT INTO wedata_demo_schema.user_info (name) VALUES ('Alice'), ('Bob');-- View dataselect * from wedata_demo_schema.user_info;
Was this page helpful?