And then gather up the results somehow:spool "foobar.dat"; select count(*) from foo_table; exit;
perl -e '`sqlplus myuser/mypassword@server @foo.sql`; my $res = `cat +foo.dat`; if($res=~m/(\d+)/){print $1}'
Celebrate Intellectual Diversity
In reply to Re: Invoke sqlplus
by InfiniteSilence
in thread Invoke sqlplus
by leoberbert
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |