[SQL] unsubscribe

2005-04-24 Thread Alexander Vlasenko
unsubscribe ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [SQL] extend INSERT by 'INSERT INTO table FETCH ... FROM cursor' syntax

2003-10-27 Thread Alexander Vlasenko
3-10' GROUP BY month,client; DELETE FROM stat WHERE SUBSTR(datetime,1,7)='2003-10'; FETCH ALL FROM total; <=== COMMIT; and it does work as expected. FETCH spews out already deleted rows. There is no problem with it. -- Alexander Vlasenko ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[SQL] extend INSERT by 'INSERT INTO table FETCH ... FROM cursor' syntax

2003-10-24 Thread Alexander Vlasenko
COMMIT; but it does not work, chokes on FETCH ALL. I want to sum up all the money by month, delete all the rows (possibly thousands of them) and insert one row per client with monthly totals. Obviously I cannot swap order of INSERT and DELETE here. I hesitate to post this to [EMAIL PROTECTED], d