1、加入环境变量(记得要加,否则无法读取到GP的环境变量)
source /usr/local/greenplum-db/greenplum_path.sh
2、/usr/local/greenplum-db/bin/psql -h ********* -p 5432 -U ***** -d ******* -c "\copy $table from '$localPath' null ' ' "
1、加入环境变量(记得要加,否则无法读取到GP的环境变量)
source /usr/local/greenplum-db/greenplum_path.sh
2、/usr/local/greenplum-db/bin/psql -h ********* -p 5432 -U ***** -d ******* -c "\copy $table from '$localPath' null ' ' "