Book Contents

Book Index

Next Topic

Home

-c command --command command

Executes one command and exits. This is useful in shell scripts. The command must be either a command string that is completely parsable by the server (i.e., it contains no vsql specific features), or a single meta-command. In other words, you cannot mix SQL and vsql meta-commands. To achieve that, you can pipe the string into vsql like this: echo "\ x \\ select * from foo;" | vsql.