Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 03 Apr 2013 @ 13:54:43 GMT


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


Subj:   Re: Pass input param as a string value in procedure
 
From:   Dieter Noeth

Anomy.Anom wrote:

  In the snippet 2 part, I would like the values to be passed as value between quotes.  


If you want to get a single quote in a string you need to use two single quotes, e.g.

     SELECT '''bla''' returns 'bla'

     Where tablename = '''||TRIM(TempTableName)|| ''' AND databasename=
     '''||TRIM(DbName) || ''' ) BB  /*snippet 2*/

Dieter



     
  <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: 15 Jun 2023