DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: concatenate sqlplus variable with literal

  1. #1
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    Does anyone know if you could concatenate a sqlplus variable to a literal like


    define tab=test
    rename &tab to &tab123

    this doesnt work

    cheers

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Code:
    SQL> define tab=xyz
    SQL> rename &tab to &tab.123
      2  ;
    old   1: rename &tab to &tab.123
    new   1: rename xyz to xyz123
    
    Table renamed.
    Jeff Hunter

  3. #3
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    cheers

Posting Permissions

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


Click Here to Expand Forum to Full Width