Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 21 Apr 2003 @ 08:09:17 GMT


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


Subj:   Re: Stored procedure warning..
 
From:   Sanjaya Nagabhushan

Try this ...

CREATE PROCEDURE spsample4()
BEGIN
FOR CustCursor AS c_customer CURSOR FOR SELECT num,empcode,basic FROM
EMPLOYEE
DO
INSERT INTO test_emp VALUES
(:CustCursor.num,:CustCursor.empcode,:CustCursor.basic);
END FOR;
END;

Ensure that the tables EMPLOYEE & TEST_EMP exist & all the requisite privileges are granted.

Sanjay



     
  <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