Re: [SQL] Quotes and spaces

2001-10-05 Thread Oleg Lebedev
I just upgraded to 7.1 and the query works for me now. thanks, Oleg Stephan Szabo wrote: > On Fri, 5 Oct 2001, Oleg Lebedev wrote: > > > Hi, > > I looked through PL/pgSQL tutorial, but I can't get quotes and spaces to > > work in queries executed from Pl/pgSQl. Here is an example: > > > > creat

Re: [SQL] Quotes and spaces

2001-10-05 Thread Stephan Szabo
On Fri, 5 Oct 2001, Oleg Lebedev wrote: > Hi, > I looked through PL/pgSQL tutorial, but I can't get quotes and spaces to > work in queries executed from Pl/pgSQl. Here is an example: > > create procedure get_name(varchar) > ... > BEGIN > query := ''SELECT first_name || || last_name

Re: [SQL] Quotes and spaces

2001-10-05 Thread Josh Berkus
Oleg, I'm assuming that this is just a hypothetical example, as the below is far from the fastest way to get something as simple as a name. > BEGIN > query := ''SELECT first_name || || last_name FROM > user''; > EXECUTE query; > ... > END; > ... I'm pretty sure your quotes are

[SQL] Quotes and spaces

2001-10-05 Thread Oleg Lebedev
Hi, I looked through PL/pgSQL tutorial, but I can't get quotes and spaces to work in queries executed from Pl/pgSQl. Here is an example: create procedure get_name(varchar) ... BEGIN query := ''SELECT first_name || || last_name FROM user''; EXECUTE query; ... END; ... Basically