Subject | Re: How to do CTRL characters in an IB string literal? |
---|---|
Author | Norman Dunbar |
Post date | 2001-05-03T07:45:30Z |
Ann wrote :
<SNIP>
SELECT 'Hello' || CHR(13) || CHR(10) || 'World' FROM DUAL;
or
INSERT INTO TABLE_NAME (FIELD_NAME) VALUES (SELECT a_line_of_text || CHR(13)
|| CHR(10) FROM some_other_table);
On my Unix boxes I get a 'blob' for the CHR(13) but that's one of those
things !
Hope this helps.
Norman.
----------------------------------------------------------------------------
----
Norman Dunbar EMail: NDunbar@...
Database/Unix administrator Phone: 0113 289 6265
Lynx Financial Systems Ltd. Fax: 0113 201 7265
URL: http://www.LynxFinancialSystems.com
----------------------------------------------------------------------------
----
<SNIP>
>> However, SQL (to the best of my knowledge) does not. I am loath toIn Oracle, it can be done with the CHR(n) function as in :
>> plunge into that particular quagmire without some clue how other
>> systems handle the problem.
SELECT 'Hello' || CHR(13) || CHR(10) || 'World' FROM DUAL;
or
INSERT INTO TABLE_NAME (FIELD_NAME) VALUES (SELECT a_line_of_text || CHR(13)
|| CHR(10) FROM some_other_table);
On my Unix boxes I get a 'blob' for the CHR(13) but that's one of those
things !
Hope this helps.
Norman.
----------------------------------------------------------------------------
----
Norman Dunbar EMail: NDunbar@...
Database/Unix administrator Phone: 0113 289 6265
Lynx Financial Systems Ltd. Fax: 0113 201 7265
URL: http://www.LynxFinancialSystems.com
----------------------------------------------------------------------------
----