如题,在shell脚本里面写一个SQL,查询指定的一张表是否为空。。。帮帮忙,小弟在此谢过各位大神。
第1个回答 推荐于2016-01-10
#!/bin/bash
sqlplus -s 'cisf/cisf23@cisfkfdb'$amp;set feed off
set heading off;
set feedback off;
set verify off;
select count(*) from 表名;
EOF本回答被提问者采纳
sqlplus -s 'cisf/cisf23@cisfkfdb'$amp;set feed off
set heading off;
set feedback off;
set verify off;
select count(*) from 表名;
EOF本回答被提问者采纳