Re: [SQL] Migrated Oracle database to PostgreSQL ??

2005-04-04 Thread Dinesh Pandey
Yes, but after creating some function, we can get sql error messages. But I not comfortable that much in that. For Procedures and Packages we can use Functions Any other option in pl/PGSQL Thanks Dinesh Pandey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

Re: [SQL] Migrated Oracle database to PostgreSQL ??

2005-04-04 Thread Yasir Malik
1. How to migrate Procedures and Packages from Oracle to PostgreSQL 2. How to find error messages in PostgreSQL thrown from an Exception (as we can get messages in Oracle with "SQLERRM" keyword) for example -- --Raise an exception RAISE EXCEPTION 'No Data found for record id % ' ,recordid

[SQL] Migrated Oracle database to PostgreSQL ??

2005-04-04 Thread Dinesh Pandey
 Hi there, Has anyone migrated Oracle database to PostgreSQL? If yes, could you please help me -    1. How to migrate Procedures and Packages from Oracle to PostgreSQL     2. How to find error messages in PostgreSQL thrown from an Exception (as we can get messages in Oracle with "SQLE

[SQL] Chield Serial

2005-04-04 Thread lucas
Hi. Is there a way to make a serial columm that works with father table??? I.e: I have created a table called "vending" and its chield table called "items". The items table have a serial columm, but I need the serial colum starts with 0 for each vending. create table vending ( id serial prima

Re: [SQL] select & group by

2005-04-04 Thread Michael L. Hostbaek
Ragnar Hafstað (gnari) writes: > On Mon, 2005-04-04 at 10:47 +, Ragnar Hafstað wrote: > > On Mon, 2005-04-04 at 12:16 +0200, Michael L. Hostbaek wrote: > > > [problem] > > [slightly broken solution] > > I forgot a FROM clause, and you might want to add a > ORDER BY clause, if that is important

Re: [SQL] select & group by

2005-04-04 Thread Ragnar Hafstað
On Mon, 2005-04-04 at 10:47 +, Ragnar Hafstað wrote: > On Mon, 2005-04-04 at 12:16 +0200, Michael L. Hostbaek wrote: > > [problem] > [slightly broken solution] I forgot a FROM clause, and you might want to add a ORDER BY clause, if that is important: select part,mfg, sum(CASE WHEN eta

Re: [SQL] select & group by

2005-04-04 Thread Ragnar Hafstað
On Mon, 2005-04-04 at 12:16 +0200, Michael L. Hostbaek wrote: > I've got a problem selecting some specific data from my table. Imagine > the following rows: > > part | mfg | qty | price | eta > --- > TEST1 ABC 10 100(No ETA, as item

Re: [SQL] select & group by

2005-04-04 Thread Richard Huxton
Michael L. Hostbaek wrote: I've got a problem selecting some specific data from my table. Imagine the following rows: part| mfg | qty | price | eta --- TEST1ABC 10 100(No ETA, as item is in stock) TEST1ABC 12 120

[SQL] select & group by

2005-04-04 Thread Michael L. Hostbaek
I've got a problem selecting some specific data from my table. Imagine the following rows: part| mfg | qty | price | eta --- TEST1ABC 10 100(No ETA, as item is in stock) TEST1ABC 12 120 04/04 TEST2CBA