If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Ask:about INFORMIX procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-03, 04:41
micheal1116 micheal1116 is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
Red face Ask:about INFORMIX procedure

how to execute a sql state that is in a varies in a procedure?? e.g
procedure...
....
let gjsql="insert into ... values(...)";
here:how to execute the gjsql's content????
....
end procedure
Reply With Quote
  #2 (permalink)  
Old 12-02-03, 13:02
butty butty is offline
Registered User
 
Join Date: Dec 2003
Posts: 10
Re: Ask:about INFORMIX procedure

I have a similar problem with a call to a procedure from a procedure using a variable which is loaded from a table's cell. So i hope an answer too
Reply With Quote
  #3 (permalink)  
Old 12-05-03, 15:03
fprose fprose is offline
Registered User
 
Join Date: Apr 2003
Location: Phoenix, AZ
Posts: 177
You are asking for dynamic SQL in a stored procedure, which doesn't exist. Someone else recently posted a process whereby they formatted the statment and then shelled out (using SYSTEM) to dbaccess for execution, but that's not dynamic sql, nor does it execute within the same transaction and can in fact deadlock with itself because it's a new SID.
__________________
Fred Prose
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On