使用批处理文件传递sql“IN”中的值

时间:2013-11-11 15:40:46

标签: sql export-to-csv

我正在尝试编写一个调用SQL文件并将其导出到csv中的作业。如何在批处理文件中调用的sql查询中传递“IN”的值。

例如: SQL select name from student where roll_no in () named user.sql
sqlplus -S usr/pwd @user.sql中调用此sql。

如何在sql文件中传递值。请指教。

1 个答案:

答案 0 :(得分:0)

select name from student where roll_no in ('your Value') named user.sql