Re: [SQL] [Newbie] migrating a stored procedure from MSSQL to postgresql

2003-08-20 Thread Richard Hall
As declared, your function returns TEXT, i.e. unlimited characters. >>  CREATE FUNCTION UpdateOrder(INTEGER) RETURNS TEXT AS Since your variable >>  r_SKUPrice RECORD; contains a number of columns >>  SELECT SKU, Price INTO r_SKUPrice you could create a composite TYPE that matches those columns a

[SQL] [Newbie] migrating a stored procedure from MSSQL to postgresql

2003-08-15 Thread Bengali
Hi, I am a postgresql and stored procedures beginner and I would like to know if the stored procedure I am trying to migrate to plpgsql from MSSQL is correct. Here 's the only table involved in the stored procedure: create table ManufacturerOrders ( OrderNumber serial, SKU int not null,