Re: [SQL] age() vs. timestamp substraction

2006-10-06 Thread Jean-Paul Argudo
mer's (bad) code :-) Cheers, -- Jean-Paul Argudo www.PostgreSQLFr.org www.dalibo.com ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [SQL] PL/PGSQL - How to pass in variables?

2006-05-14 Thread Jean-Paul Argudo
ng the function, so: select get_table_count('bar') as bar; bar - 3 (1 row) I don't know any other way to do that... Cheers, -- Jean-Paul Argudo www.PostgreSQLFr.org www.dalibo.com ---(end of broadcast)--- TIP 9: In versio

Re: [SQL] PL/PGSQL - How to pass in variables?

2006-05-14 Thread Jean-Paul Argudo
e 'SELECT count(*) FROM '||tablename into rowcount; return rowcount; END; $$ LANGUAGE 'plpgsql'; select get_table_count('bar'); get_table_count ----- 3 (1 row) Cheers, -- Jean-Paul Argudo www.PostgreSQLFr.org www.dalibo.com

Re: [SQL] connectby documentation

2006-03-14 Thread Jean-Paul Argudo
onvinced this method is the best so far. I used it in 3 different projects where I had to implement big trees structures on a table. They all still work with no problem of any kind. Just to let you know in case you missed that ;-) My 2 ยข -- Jean-Paul Argudo www.Argudo.o