Re: [SQL] [GENERAL] Any documatation about porting from Oracle to PostgreSQL

2006-10-18 Thread Robert Treat
On Tuesday 17 October 2006 05:36, A. Kretschmer wrote: > am Tue, dem 17.10.2006, um 10:44:52 +0200 mailte Thomas Kellerer folgendes: > > On 17.10.2006 10:36 Andreas Kretschmer wrote: > > >http://techdocs.postgresql.org/#convertfrom > > > > I just noticed that the link "Porting from Oracle PL/SQL"

Re: [SQL] hi i want help on levels

2006-10-18 Thread Jim C. Nasby
Search the archives for hierarchical query. -- Jim Nasby[EMAIL PROTECTED] EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [SQL] [HACKERS] Bug?

2006-10-18 Thread Jim C. Nasby
Moving to -sql. On Wed, Oct 18, 2006 at 06:53:46PM +0530, Indira Muthuswamy wrote: > Hai, > > I have encountered a problem with PostgreSQL.I have created a table > 'tab1' with a column 'a' with serial type.I entered 20 records into the > table.So the query > select max(a) from tab1; > returned 2

[SQL] plpgsql record as parameter ???

2006-10-18 Thread Andy
Hi, I have the following function:   CREATE OR REPLACE FUNCTION zahlavis_rech_list(int4, varchar(10)) RETURNS "varchar" AS$BODY$DECLAREavis_id ALIAS FOR $1;rech_type ALIAS FOR $2;rech_list text;sql text;rec RECORD;BEGIN   rech_list := '';sql := 'SELECT '|| rech_type ||' as xx FROM rechnung W