Quote Originally Posted by dbaliker View Post
... I want to form a query string from SQL procedure.
Posted code does not appear to be building a dynamic sql string... plenty of documentation on the web about how to do it, just google "oracle dynamic sql"