Skip to content

Instantly share code, notes, and snippets.

@handuy handuy/1.sql
Last active Sep 16, 2018

Embed
What would you like to do?
Cú pháp: psql -U postgres -f [tên_file]. Chạy file 1.sql ở citus_master, 1_test.sql ở citus_worker_1
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS posts;
CREATE TABLE users (id int, name text, age int);
CREATE TABLE posts (id int, title text);
SELECT create_reference_table('users');
SELECT create_reference_table('posts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.