日期:2014-05-18  浏览次数:20606 次

请教:bat等待用户输入参数并传给sql脚本
我想写一个bat 要求用户输入参数,并把输入的参数传递给sql脚本

以下是sql脚本内容:
select id,name from userA where id in (参数1) and name like '参数2' 


请高手指教

------解决方案--------------------
select.bat



osql -U用户名 -P密码 -q "select id,name from userA where id in (%1) and name like '%2' "
------解决方案--------------------
3楼的,可以输入参数,但是看不到结果呢??