假设您有一个名为person的表:
CREATE TABLE person ( person_id BIGINT NOT NULL, last_name VARCHAR(255) NOT NULL, first_name VARCHAR(255), age INT NOT NULL, PRIMARY KEY (person_id) );
您可以像这样创建一个新的超过30人的表格:
CREATE TABLE people_over_30 AS SELECT * FROM person WHERE age > 30;