# example for connecting to a PostgreSQL server: db.connect driver=pg database="host=myserver.itc.it,dbname=mydb" db.login user=myname pass=secret db.connect -p db.tables -p
echo " ALTER TABLE mytable ADD ID integer; CREATE SEQUENCE mytable_seq; UPDATE mytabe SET ID = nextval('mytable_seq'); DROP SEQUENCE mytable_seq; " | db.execute
\h copy COPY t1 FROM 'filename' USING DELIMITERS ',';
Last changed: $Date: 2006/07/08 20:03:57 $