Re: [GENERAL] using Replace funcion in postgresql

2013-09-17 Thread Adrian Klaver
On 09/16/2013 06:20 PM, karinos57 wrote: just as FYI the database i am using is Netezza so my data type is CHARACTER VARYING(6). The error i am getting is 'Buffer Overflow'. So the funny thing is when i change this '' to this ' ' then the query runs but it is putting a blank space between the

Re: [GENERAL] using Replace funcion in postgresql

2013-09-17 Thread karinos57
just as FYI the database i am using is Netezza so my data type is CHARACTER VARYING(6). The error i am getting is 'Buffer Overflow'. So the funny thing is when i change this '' to this ' ' then the query runs but it is putting a blank space between the values like this 88 97 but i get an error wh

Re: [GENERAL] using Replace funcion in postgresql

2013-09-16 Thread David Johnston
karinos57 wrote > SELECT >Volume, REPLACE(Volume,'.','') > FROM MyTable > > The data in my table looks like this: > > 88.97 > 448.58 and etc > > i want to show like this with out the period: > > 8897 > 44858 > > I have tried to use different ways but still getting the error i ho

Re: [GENERAL] using Replace funcion in postgresql

2013-09-16 Thread Adrian Klaver
On 09/16/2013 04:55 PM, karinos57 wrote: SELECT Volume, REPLACE(Volume,'.','') FROM MyTable The data in my table looks like this: 88.97 448.58 and etc i want to show like this with out the period: 8897 44858 I have tried to use different ways but still getting the error i hope

Re: [GENERAL] using Replace funcion in postgresql

2013-09-16 Thread John R Pierce
On 9/16/2013 4:55 PM, karinos57 wrote: SELECT Volume, REPLACE(Volume,'.','') FROM MyTable The data in my table looks like this: 88.97 448.58 and etc i want to show like this with out the period: 8897 44858 I have tried to use different ways but still getting the error i hope