Hi all,
I am newbie. So please bear with me.
I have a txt file having DDL (Data Definition Language) in the following format:
I need to format about as follows:
What is the easiest way to do it?
I deal with lot of sql which have 1000+ columns, manually formatting them is a tedious task
All the columns need to be left aligned. The data types should be line perfectly and the NULL and NOT NULL needs to be aligned properly.
I am newbie. So please bear with me.
I have a txt file having DDL (Data Definition Language) in the following format:
Code: Select all
CREATE MULTISET TABLE IVFF_CALL_SEG
(
CALLER_ID CHAR(26) NOT NULL ,
S_ID SMALLINT NOT NULL ,
S_SEQ_NUM INTEGER NOT NULL ,
CHK_PNT_MENU_TYPE_CD CHAR(2) NOT NULL ,
PTNRQW_ID CHAR(3) NULL
)
Code: Select all
CREATE MULTISET TABLE IVFF_CALL_SEG
(
CALLER_ID CHAR(26) NOT NULL ,
S_ID SMALLINT NOT NULL ,
S_SEQ_NUM INTEGER NOT NULL ,
CHK_PNT_MENU_TYPE_CD CHAR(2) NOT NULL ,
PTNRQW_ID CHAR(3) NULL
)
I deal with lot of sql which have 1000+ columns, manually formatting them is a tedious task
All the columns need to be left aligned. The data types should be line perfectly and the NULL and NOT NULL needs to be aligned properly.