Re: [GENERAL] Loop in loop

2007-01-22 Thread Moritz Bayer
Hi Andreas, if it is possible, can you tell me what error I 've put in my first function? Thanks, Mo

[GENERAL] Loop in loop

2007-01-22 Thread Moritz Bayer
Hello group, I've got a new problem where I hope someone can give me a solution. I have witten a function which should give back a type created by me. To get the data into the type, I have to go through a loop, which holds other loops. Simplified (not really), it looks like this: CREATE OR REPL

Re: [GENERAL] Loop in loop

2007-01-22 Thread Moritz Bayer
OK, this looks better: CREATE OR REPLACE FUNCTION getregistrationtagging() RETURNS SETOF ty_usertracking AS $BODY$ DECLARE objReturn ty_usertracking%rowtype; BEGIN for objReturn IN SELECT date_part('day',trackdate) as ty_day, date_part('month',trackdate) as ty_month

Re: [GENERAL] check table existence...

2007-01-15 Thread Moritz Bayer
Thanks, that's exactly what I was looking for :-) kind regards, Morirt 2007/1/15, A. Kretschmer <[EMAIL PROTECTED]>: am Mon, dem 15.01.2007, um 13:18:11 +0100 mailte Moritz Bayer folgendes: > Dear list, > > I would like to create a function which gets a tablena

[GENERAL] check table existence...

2007-01-15 Thread Moritz Bayer
Dear list, I would like to create a function which gets a tablename and checks if the specific table exists.The return value should be a bool. Now I'm wondering how to do this the best way. Any suggestions? kind regards and thanks in advance, Moritz