dbTalk Databases Forums  

Insert to a TEXT field using SPL

comp.databases.informix comp.databases.informix


Discuss Insert to a TEXT field using SPL in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Laurie Gustin
 
Posts: n/a

Default Insert to a TEXT field using SPL - 09-21-2010 , 11:39 AM






Hello All!

I am trying to write a procedure that will insert to a TEXT field. I can create variables using the 'references text' clause, but I have been unable to figure out how to assign a value to them. The value is dynamic and needs to be passed into the procedure as a parameter.

Any help would be appreciated.

Thanks
Laurie

IDS 11.5FC7


Laurie Gustin
IT Programmer Analyst
Department of Public Safety
lgustin (AT) utah (DOT) gov
801-965-4410

Reply With Quote
  #2  
Old   
Jonathan Leffler
 
Posts: n/a

Default Re: Insert to a TEXT field using SPL - 09-21-2010 , 11:42 PM






On 9/21/10 9:39 AM, Laurie Gustin wrote:
Quote:
I am trying to write a procedure that will insert to a TEXT field. I
can create variables using the 'references text' clause, but I have been
unable to figure out how to assign a value to them. The value is
dynamic and needs to be passed into the procedure as a parameter.

IDS 11.5FC7
You will need to call the procedure from a host language that supports
locators - ESQL/C, possibly ODBC, JDBC, ...

You pass the locator as a parameter to the statement that executes the
stored procedure:

$ loc_t text;
...code to initialize text...
EXEC SQL EXECUTE PROCEDURE insert_text(:text);

For illustrative code that manipulates blobs in ESQL/C, see the
'vignettes' insblob, updblob, appblob, selblob, selmultiblob distributed
with SQLCMD (IIUG Software Archive: http://www.iiug.org/software).

Yours,
Jonathan Leffler

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.