Preeti Sonambekar
2010-04-21 20:48:04 UTC
Hi All,
I want to do something like this.
static void Job2(Args _args)
{
custtable custtable;
;
select * from custtable
where (custtable.countryregionid like 'US' || custtable.countryregionid like
'CA' || custtable.countryregionid like '')
&& (custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9]' || custtable.zipcode
like '[A-Z]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9] [0-9][0-9][0-9][0-9]');
}
But it gives error for the regular expreesions. How to achieve this?
Thanks,
Preeti
I want to do something like this.
static void Job2(Args _args)
{
custtable custtable;
;
select * from custtable
where (custtable.countryregionid like 'US' || custtable.countryregionid like
'CA' || custtable.countryregionid like '')
&& (custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9]' || custtable.zipcode
like '[A-Z]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
|| custtable.zipcode like '[0-9][0-9][0-9][0-9][0-9] [0-9][0-9][0-9][0-9]');
}
But it gives error for the regular expreesions. How to achieve this?
Thanks,
Preeti