728x90
Question
How do you insert a newline / carriage return into a character field in dbaccess?
Cause
Sometimes there is the need to insert a newline / carriage return character into a character (varchar, lvarchar, etc.) column of a table to reflect a paragraph type format.
Answer
Within dbaccess or the ISQL menu, one could use the following steps to accomplish this:
create table t2 (c1 lvarchar);
insert into t2 values ('test'||chr(10)||chr(13)||'more test');
Selecting the data within dbaccess, one can see that the newline / carriage return is in the table by viewing the output format of the following select statement:
select * from t1;
c1 test
more test
1 row(s) retrieved.
http://www-01.ibm.com/support/docview.wss?uid=swg21686620
728x90
'Informix > informix reference' 카테고리의 다른 글
여러 열의 데이터를 한 행으로 표시하기 (0) | 2016.09.08 |
---|---|
SDS환경에서 FAILOVER_CALLBACK 스크립트의 중요성 (0) | 2016.09.06 |
A script that finds outstanding in-place alters in a database (0) | 2016.05.20 |
referential constraints 관련 정보 (Gary Ben-Israel) (0) | 2016.05.02 |
인포믹스 클라이언트에서 dbaccess 사용하기 (3.70.xC3 이전) (0) | 2016.03.28 |