Re: [GENERAL] r trim of characters other than space

2006-02-13 Thread Alban Hertroys
surabhi.ahuja wrote: patName := trim($1); select trim(trailing `^` from patName) INTO patName; trim(patName); I think this line should contain an assignment. -- Alban Hertroys ---(end of broadcast)--- TIP 9: In versions be

Re: [GENERAL] r trim of characters other than space

2006-02-10 Thread Pandurangan R S
atName; > trim(patName); > > this seems to be giving syntax error > > thanks, > regards > Surabhi > > > From: Tom Lane [mailto:[EMAIL PROTECTED] > Sent: Thu 2/9/2006 12:49 PM > To: surabhi.ahuja > Cc: pgsql-general@postgr

Re: [GENERAL] r trim of characters other than space

2006-02-09 Thread surabhi.ahuja
Title: Re: [GENERAL] r trim of characters other than space but how should i do it within a stored procedure something like:   CREATE OR REPLACE FUNCTION insert(varchar(65),varchar(65),date,varchar(256)) RETURNS retval AS'DECLAREpatName text;BEGIN    patName := tr

Re: [GENERAL] r trim of characters other than space

2006-02-08 Thread Tom Lane
"surabhi.ahuja" <[EMAIL PROTECTED]> writes: > i want to make the following check, > if it is having carets in the end, then those carets be removed. > so if i get a string like abc def > i should be able to get abc def Per SQL spec: regression=# select trim(trailing '^' from 'abc def');

Re: [GENERAL] r trim of characters other than space

2006-02-08 Thread A. Kretschmer
am 09.02.2006, um 11:54:43 +0530 mailte surabhi.ahuja folgendes: > Hi > hi i have varchar type fiels in a table. > > i want to make the following check, > > if it is having carets in the end, then those carets be removed. > > so if i get a string like abc def > > i should be able to g

[GENERAL] r trim of characters other than space

2006-02-08 Thread surabhi.ahuja
Hi  hi i have varchar type fiels in a table.   i want to make the following check,   if it is having carets in the end, then those carets be removed.   so if i get a string like abc def   i should be able to get abc def   how should i do this.   thanks, regards Surabhi