Hi Everyone,
I have a file with the below content:
File1.txt
###
###==> the below table was created for testing1 purpose;
###
create table 123
(
field1 date,
field2 char(10)
primary key(field1)
);
###
###==> the below table was created for testing2 purpose;
###
create table abc
(
fielda1 date,
fielda2 char(10)
);
Question:
I would like to print only the 'create table' statements like below:
Sample Output:
create table 123
(
field1 date,
field2 char(10)
primary key(field1)
);
create table abc
(
fielda1 date,
fielda2 char(10)
);
any hints would be much appreciated.
Thanks.
RaviShankar