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 > TEXT data type in INFORMIX

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-04, 23:30
aselar aselar is offline
Registered User
 
Join Date: Jun 2004
Posts: 19
TEXT data type in INFORMIX

Hi Guys,

I have not worked with data type TEXT before. Now I need to create a TEXT column in one of the table to store some report outputs. How do you create a TEXT column in a table? Please let me know the synatx.

for an example

create table test_tbl
( emp_code char(15)
emp_history text
)

Is this correct ?

Thanks!

LR
Reply With Quote
  #2 (permalink)  
Old 10-18-04, 01:29
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,
The syntax is correct, though u forgot a comma at the end of the first line.

create table test_tbl
( emp_code char(15),
emp_history text
)

What application are u using to insert the data. If ur using 4GL u will have to loacate the datatype in to memory.
eg.
locate emp_rec.emp_history into memory
Reply With Quote
  #3 (permalink)  
Old 10-18-04, 11:30
aselar aselar is offline
Registered User
 
Join Date: Jun 2004
Posts: 19
Thanks lloydnwo. Yes! we will be using 4GL to insert data. I beleive we can use load statement, if we use isql or dbaccess.
Reply With Quote
  #4 (permalink)  
Old 10-18-04, 23:03
lloydnwo lloydnwo is offline
Registered User
 
Join Date: Aug 2003
Location: India
Posts: 262
Hi,

Your welcome, yes you can use load statements through isql/dbaccess.

regards,

lloyd
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