Re: [SQL] Select and functions

2003-11-05 Thread Jeff Eckermann
--- "Stephen J. Thompson" <[EMAIL PROTECTED]> wrote: > But if I use it in a before trigger the procedure > fails to work. > > CREATE OR REPLACE FUNCTION > staging.write_work_country() > RETURNS trigger AS > ' > DECLARE > alias_rec RECORD; > BEGIN > -- Cl

Re: [SQL] Select and functions

2003-11-05 Thread terry
CTED] > [mailto:[EMAIL PROTECTED] Behalf Of Stephen > J. Thompson > Sent: Wednesday, November 05, 2003 9:26 AM > To: [EMAIL PROTECTED] > Subject: [SQL] Select and functions > > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello all, > > I am having a

[SQL] Select and functions

2003-11-05 Thread Stephen J. Thompson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I am having a little bit of trouble here. If I use the replace function in a select statement all works as expected. select firstname, lastname, replace(worktelephonenumber, ' ', '') AS worktel from contacts; But if I use it in a befor