1.从主表查询一些数据导入从表
SELECT INTO语句允许您创建新表并插入查询返回的数据
SELECT INTO
临时表
2.CREATE TABLE AS语句创建一个新表,并使用查询返回的数据填充它(优先使用这个语句)
CREATE TABLE AS
3.postgreSQL有伪类型的概念(serial)
4.boolean类型的值
5.字符串类型char 、varchar 、text
char(n)、varchar(n)指定多少长度就是多少长度,不会动态变化