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 > Insert data into a field of datatype text

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-06, 06:09
me_zeta me_zeta is offline
Registered User
 
Join Date: Nov 2005
Posts: 4
Insert data into a field of datatype text

I want to insert data into a table having two fields

column_name data_type
abc char
pqr datetime

the value that has to go into this text type field is a string which has line feeds in between.
for eg
abc should be inserted with 'id1'
par should be inserted with 'This is a
description about
id1'

ie it should have line feed inbetween

wat should be the query?

zeta
Reply With Quote
  #2 (permalink)  
Old 07-03-06, 09:23
ifx ifx is offline
Registered User
 
Join Date: Feb 2005
Posts: 33
allow newline

Hi zeta,

try this:
execute procedure ifx_allow_newline('t');
INSERT INTO table_name (abc, par) VALUES ('id1', 'This is a
description about
id1');

(assuming that the second column is defined as par char(..), not as "pqr datetime" ...)

Hope this helps
ifx
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