Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 10 Jun 2013 @ 16:27:17 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Selecting single quotes within dynamic SQL
From:   Roth, David W

If you mean you want the charval within qotes try this:

     'INSERT INTO  ud_gem_ad.proctest
     Select ''' || trim(charval) || ''' FROM chartest;'

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 24 Jul 2020