Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 11 Dec 2009 @ 19:58:36 GMT


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


Subj:   Re: Wildcard lookups in a stored proc
 
From:   [email protected]

Your Where statement in the SQL probably look like below:

     WHERE NAME LIKE ANY ('%KHAN%', '%JOHN%');

If that is the case, try to build the statement dynamically some thing like this:

     Set Statement_ST = ...... "From Table
     WHERE NAME   LIKE ANY ('% " ||'   '|| :Input_Name.... bla bla

I think you got the idea.... :)



     
  <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