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 > Is possible insert data (text) in a lvarchar datatype?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-04, 15:35
angel.villegas angel.villegas is offline
Registered User
 
Join Date: Jan 2004
Posts: 5
Question Is possible insert data (text) in a lvarchar datatype?

I need to insert a resut of query (text) in another table with a lvarchar datatype... it is possible ? how?
Reply With Quote
  #2 (permalink)  
Old 02-09-04, 05:56
Roelwe Roelwe is offline
Registered User
 
Join Date: Aug 2002
Location: Belgium
Posts: 534
Depending on the version of your engine, lvarchar is a limited datatype.

But of course this is possible.
How do you want it? Do you want each result row to represent a new row in your other table?
INSERT INTO tab1 (Select col1, col2 from tab2);

If you want the full result of the query in one field - you should concatenate the resultset rows in one variable and then insert this variable in the new table
__________________
rws
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