Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    6

    Unanswered: dynamic using clause for bind variable

    Experts,

    I am stumpted while writing a function returning USING clause based on query's bind vaiable?
    Example:

    Input Query:

    SELECT C1, C2 FROM T1
    WHERE C3 = :1
    AND C4 = :2
    AND C5 = 'GREAT'

    Function OUTPUT string:

    'USING p_C3, p_C4'

    Thanks!!

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1

    Re: dynamic using clause for bind variable

    Originally posted by badcoder
    Experts,

    I am stumpted while writing a function returning USING clause based on query's bind vaiable?
    Example:

    Input Query:

    SELECT C1, C2 FROM T1
    WHERE C3 = :1
    AND C4 = :2
    AND C5 = 'GREAT'

    Function OUTPUT string:

    'USING p_C3, p_C4'

    Thanks!!
    Your question is unclear IMO.

    If you are trying to construct/execute "dynamic SQL",
    you can't do what you appear to be trying to do.

    I suggest you research EXECUTE IMMEDIATE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •