Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 28 Apr 2008 @ 23:01:44 GMT

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

Subj:   Re: Can we use '%' with in the procedure for searching string
From:   Michael Larkins

Hi Sreenivasa:

I wrote the following little procedure and it works fine:

     replace procedure sql00.like_test2 ()
     for cur_ptr as myptr
        cursor for select vartext from vartable
                   where vartext like 's%'
        do upd sql00.vartable set vartext='s'||cur_ptr.vartext
           where vartext=cur_ptr.vartext;
     end for;

Hope it helps you figure out what is incorrect with yours.

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor

  <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: 27 Dec 2016