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 > DB2 > Carriage return in View definition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-02-11, 17:02
Daniil.Monin Daniil.Monin is offline
Registered User
 
Join Date: Oct 2010
Posts: 19
Carriage return in View definition

Hi.

I have issue with view definition.
I created view

Code:
create view A37A3 AS
select
 1 a,
        2 b,
    3 c
from       sysibm.sysdummy1;
As you see there a lot of \r\n (carriage return) in the body of View. Everything is fine, but when i try to get definition from system catalog

Code:
select * from SYSCAT.views where VIEWNAME = 'A37A3';
all my \r\n disappear:

Code:
create view A37A3 AS  select   1 a,          2 b,      3 c  from       sysibm.sysdummy1
Have any idea to get back my carriage return?
Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 09-02-11, 18:49
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If I were you, I would forget about cr/lf and find a SQL Formatter. There are some free ones on the internet.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Tags
carriage return, view

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