我正在尝试编写一个调用SQL文件并将其导出到csv中的作业。如何在批处理文件中调用的sql查询中传递“IN”的值。
例如:
SQL select name from student where roll_no in () named user.sql
在sqlplus -S usr/pwd @user.sql
中调用此sql。
如何在sql文件中传递值。请指教。
答案 0 :(得分:0)
select name from student where roll_no in ('your Value') named user.sql