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 > Dynamic SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-05, 12:24
Artik Artik is offline
Registered User
 
Join Date: Jan 2005
Posts: 10
Dynamic SQL

Is it possible to do some dynamic SQL in a stored procedure ?

[Like the EXECUTE IMMEDIATE in Oracle]

I want to create a string withan SQL statement and execute it :
ie

define Strsql varchar(100);

LET Strsql = "insert int " || table_name || "values (" || val || ");";
where table_name and val are parameters

and then execute this statement (= execute the insert)
Reply With Quote
  #2 (permalink)  
Old 02-03-05, 14:05
RobP RobP is offline
Registered User
 
Join Date: Mar 2004
Location: Netherlands
Posts: 183
Sorry this is not possible in IDS with normal SPL commands. I beleive there is bladelet that can be used to achieve this in IDS 9. You coulld check the IBM website for this. I think I've seen it in developerswork corener of Informix in the datablade section. But it is not as easy as with Oracle.

Hope this helps,


Rob
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