Ksh Set Variable With Dynamic Sql