SQL查询中Shellscript导出变量的用法
我们可以在SQL查询中使用shell脚本导出变量吗 示例如下:SQL查询中Shellscript导出变量的用法,shell,sqlplus,Shell,Sqlplus,我们可以在SQL查询中使用shell脚本导出变量吗 示例如下: export name=Georgia; Connect sqlplus through linux server $Oraclepath/sqlplus -s username/password@schemaname Select * from employee where first_name='$name'; 有人能帮我吗?您应该可以从命令行执行类似的操作: $Oraclepath/sqlplus -s usernam
export name=Georgia;
Connect sqlplus through linux server
$Oraclepath/sqlplus -s username/password@schemaname
Select * from employee where first_name='$name';
有人能帮我吗?您应该可以从命令行执行类似的操作:
$Oraclepath/sqlplus -s username/password <<eof
select * from employee where first_name='$name';
eof
$Oraclepath/sqlplus-s username/password我编辑了你的答案,因为格式隐藏了你答案的大部分内容(我想谢谢你,亚伦,我一直在努力解决标记问题不客气!我保证通常不会那么麻烦!