sql - netezza passing variables -


hi trying pass values variable in sql using run_nzodbc script,

run_nzodbc /development/df2/dfr/sql/adhoc/sriram/gen.sql -v condition =prod.usc_code in (12000,12001)>/development/df2/data01/sriram/df2_astrazeneca_seroquel_mthly_01160044dpt.log 2>/development/df2/data01/sriram/df2_astrazeneca_seroquel_mthly_01160044dpt.err &

gen.sql

create table xxx as

( select * abc a.string =:condition );

instead of condition have replace string contains space in between passed variable while running query. when value passed gets truncated after instance of space occurs, have tried passing value enclosed in single , double quotes. please let me know there way pass string values space in between vriable

this works me.

nzsql -atv "condition='1 space'" -c "select :condition" 

i imagine run_nzodbc command work same.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -