shell脚本

/usr/local/freetds/bin/bsqldb -S host -U user -P passwd -D database >xxx.txt <<EOF
select count(1) from t_table;
EOF