You are on page 1of 1

Netezza:-Environmental variables ----------------------NZ_USER="xxx" NZ_PASSWORD="*****" NZ_DATABASE="TRAINING_DB" NZ_SECURITY_LEVEL : preferredSecured, preferredUnsecured, onlySecured, onlyUnsec ured SESSIONS --------ALTER, DROP, SHOW

\set->displays session variables TO EXECUTE QUERIES FROM A FILE ------------------------------1. nzsql -f filename 2. nzsql \i foo.sql TO READ INPUT ------------nzsql < foo.sql(eg.) TO STORE THE COUNT VALUE IN A VARIABLE -------------------------------------VAR1= nzsql -A -t -c "select count(*) from test_table" OUTPUT TO A FILE ---------------1. nzsql -o foo.out 2.nzsql \o foo.out