本文为您介绍如何使用查询结果创建数据表。 teledb=# insert into t values(1,'teledb'); INSERT 0 1 teledb=# create table t_as as select * from t; INSERT 0 1 teledb=# select * from t_as; id | mc ----+---------- 1 | teledb (1 row)
本文为您介绍如何使用查询结果创建数据表。 teledb=# insert into t values(1,'teledb'); INSERT 0 1 teledb=# create table t_as as select * from t; INSERT 0 1 teledb=# select * from t_as; id | mc ----+---------- 1 | teledb (1 row)
= "/bin/sh" ]; then 通过-5的方式来指定需要查看多少行的数据(不指定参数默认查看前10行的数据)。 head命令参数详情: 输入: head --help 步骤3 tail查看文件 查看环境变量文件/etc/profile末尾5行的信息。 输入: tail -5 /etc/profile 输出: . $i fi done unset i fi 通过-5的方式来指定需要查看末尾多少行的数据(不指定参数默认查看末尾10行的数据)。