greatshots has asked for the wisdom of the Perl Monks concerning the following question:
From the above input I would like to take table_name.column_name format output. but default null is not the column name. keeping that in mind I would like to get a regex to do this. I have written a perl code which comes for 20 lines. to do the above task. But I would like to get the better solution.create table "metrica".vodafone_capacity_cell_count_week ( nc_id integer, cell_id varchar(50) not null , week_of integer not null , busy_hour "informix".utime, gsm_tch_cong_pc_range_1 integer, gsm_tch_cong_pc_range_2 integer, gsm_tch_cong_pc_range_3 integer, gsm_sdcch_cong_pc_range_1 integer, gsm_sdcch_cong_pc_range_2 integer, gsm_sdcch_cong_pc_range_3 integer, gsm_sdcch_cong_pc_range_4 integer, gsm_hr_tch_util_pc_range_1 integer, gsm_hr_tch_util_pc_range_2 integer, gsm_hr_tch_util_pc_range_3 integer, gsm_hr_tch_util_pc_range_4 integer, gsm_hr_tch_util_pc_range_5 integer, gprs_cong_pc_range_1 integer, gprs_cong_pc_range_2 integer, gprs_cong_pc_range_3 integer, config_tch integer, config_fpdch integer, config_trx integer, config_layer integer, cell_type varchar(25) default null );
Above output is from my script.vodafone_capacity_cell_count_week vodafone_capacity_cell_count_week.nc_id vodafone_capacity_cell_count_week.cell_id vodafone_capacity_cell_count_week.week_of vodafone_capacity_cell_count_week.busy_hour vodafone_capacity_cell_count_week.gsm_tch_cong_pc_range_1 vodafone_capacity_cell_count_week.gsm_tch_cong_pc_range_2 vodafone_capacity_cell_count_week.gsm_tch_cong_pc_range_3 vodafone_capacity_cell_count_week.gsm_sdcch_cong_pc_range_1 vodafone_capacity_cell_count_week.gsm_sdcch_cong_pc_range_2 vodafone_capacity_cell_count_week.gsm_sdcch_cong_pc_range_3 vodafone_capacity_cell_count_week.gsm_sdcch_cong_pc_range_4 vodafone_capacity_cell_count_week.gsm_hr_tch_util_pc_range_1 vodafone_capacity_cell_count_week.gsm_hr_tch_util_pc_range_2 vodafone_capacity_cell_count_week.gsm_hr_tch_util_pc_range_3 vodafone_capacity_cell_count_week.gsm_hr_tch_util_pc_range_4 vodafone_capacity_cell_count_week.gsm_hr_tch_util_pc_range_5 vodafone_capacity_cell_count_week.gprs_cong_pc_range_1 vodafone_capacity_cell_count_week.gprs_cong_pc_range_2 vodafone_capacity_cell_count_week.gprs_cong_pc_range_3 vodafone_capacity_cell_count_week.config_tch vodafone_capacity_cell_count_week.config_fpdch vodafone_capacity_cell_count_week.config_trx vodafone_capacity_cell_count_week.config_layer vodafone_capacity_cell_count_week.cell_type
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: removing unwanted lines from the pattern match
by davorg (Chancellor) on Nov 16, 2006 at 10:32 UTC | |
|
Re: removing unwanted lines from the pattern match
by Corion (Patriarch) on Nov 16, 2006 at 10:36 UTC | |
|
Re: removing unwanted lines from the pattern match
by BrowserUk (Patriarch) on Nov 16, 2006 at 11:39 UTC | |
|
Re: removing unwanted lines from the pattern match
by jhourcle (Prior) on Nov 16, 2006 at 13:51 UTC |