oracle - sqlplus pass a string containing ' ' such as 'index1','index2','index3' -
i need pass value sql file cause executing condition in. instance : delete table col in ('index1','index2','index3')
i have issue when try call sql file cmd using sqlplus command
set indexes = 'index1','index2','index3' sqlplus script %indexes%
when that, index1 passed or there problem tried that
set indexes = "'index1','index2','index3'" sqlplus script %~indexes%
but there problem too
here sql:
delete table col in (&1)
do have idea how can pass string need ? thank you
oracle not come built-in string tokenizer. so, have build our own. there several different solutions on so. here 1 published, work on 10g or higher. earlier versions try this one.
Comments
Post a Comment