executing multiple quieries
I am new to verica please help with below question
i want to execute multiple queries in vertica from shell scripting. is there any way i can do by just logging once and execute the next queries or statements one after the other
want to write below code in shell
ex connect to db
pset format unaligned
pset footer
select stmt
dml operation
select stmt
.
.
.
.
disonnect
i tried using different commands but was not successful. please answer
i want to execute multiple queries in vertica from shell scripting. is there any way i can do by just logging once and execute the next queries or statements one after the other
want to write below code in shell
ex connect to db
pset format unaligned
pset footer
select stmt
dml operation
select stmt
.
.
.
.
disonnect
i tried using different commands but was not successful. please answer
0
Comments
[dbadmin@vertica01 ~]$ vsql -Atc "select * from test;insert into test values ('Hi');commit;select * from test;"
Hi