Subject | Re: [firebird-support] external file table and CR/LF |
---|---|
Author | Milan Babuskov |
Post date | 2003-12-09T19:25:44Z |
Brian Schembri wrote:
function Chr that gives character for given ascii value.
Create table with all fields + one char(2) field for CR+LF, and do
something like this:
SELECT *, Chr(13) || Chr(10)
FROM real_table
INTO external_table
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net
> Can someone guide how to export to a text file thatAFAIK, you need to use some UDF. For example, rfunc UDF library has
> can be seen through an editor. I tried using the
> create command with the external file option but I
> cannot get to insert a CR/LF in the rows. Without the
> CR/LF I can see a whole line in the text editor.
> My original idea was to create the rows and the update
> the whole table with the CR/LF in a last column
> specificly for that. However I get the message cannot
> update external table.
> Can you please advise how to this?
function Chr that gives character for given ascii value.
Create table with all fields + one char(2) field for CR+LF, and do
something like this:
SELECT *, Chr(13) || Chr(10)
FROM real_table
INTO external_table
HTH
--
Milan Babuskov
http://fbexport.sourceforge.net