Re: [SQL] Some questions about PLpgSql

2001-03-15 Thread Tom Lane
Josh Berkus <[EMAIL PROTECTED]> writes: > Now, testing how many rows were inserted/updated/deleted ... that I'm > not sure about. It would be nice to have a ROWS_AFFECTED returned from > a data manipulation query in PL/pgSQL, but I don't believe that that has > been implemented. It has as of 7.1

Re: [SQL] Some questions about PLpgSql

2001-03-15 Thread Josh Berkus
Jack, > 2) check if an INSERT/UPDATE/ DELETE has done successfully? This happens automatically, within a PL/pgSQL function. If the INSERT/UPDATE errors out, the function automatically halts. Actually, this kind of behaviour can be annoying the other way (sometimes one doesn't care about the er

RE: [SQL] Some questions about PLpgSql

2001-03-15 Thread Sondaar Roelof
gt; Sent: 15 March 2001 12:04 > To: [EMAIL PROTECTED] > Subject: [SQL] Some questions about PLpgSql > > Hi, all > > By using 'PLpgsql', is that possible to > > 1) check if a specific table exists? > 2) check if an INSERT/UPDATE/ DELETE has done successfully? &

[SQL] Some questions about PLpgSql

2001-03-15 Thread datactrl
Hi, all By using 'PLpgsql', is that possible to 1) check if a specific table exists? 2) check if an INSERT/UPDATE/ DELETE has done successfully? Is there some more documents or samples for PLpgsql except USER GUIDE and PostgreSQL Introduction & concept? THANK YOU JACK ---