postgresql数据库创建/修改/删除等写入类代码语法总结: 1,创建库 2,创建/删除表 2.1 创建表 create table myTableName 2.2 如果表不存在则创建表 create table if not exists myTableName 2.3 删除表 drop table if exists myTableName; 2.4 实例代码: drop table if exists myTableName; create table if not exists my
上篇写到用pg_bulkload来导入数据,但是实际的环境是solaris,pg_bulkload还不支持,于是用copy的方式,下面附上脚本 -bash-4.1$ cat copy.sh #!/bin/sh #$1 data fil ename file=$1 if [ ! -f $file ] then echo "File is not exist" exit 1 fi echo "--------------------------------------------