| From: | Alexander Concha <alex(at)buayacorp(dot)com> |
|---|---|
| To: | Volcom System <volcom(dot)system(at)hotmail(dot)com> |
| Cc: | PGSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
| Subject: | Re: Ayuda con Function |
| Date: | 2007-09-26 04:09:53 |
| Message-ID: | 46F9DB91.60401@buayacorp.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Volcom System escribió:
> Buenas Noches en SQL Server podria usar este query (procedimiento almacenado con argumentos)
>
> CREATE PROCEDURE ALM_SP_CONSULTA_PRODUCTO(at)CodEmpresa varchar(3), @CodSucursal varchar(3)ASSELECT Cod_Producto, Dsc_ProductoFROM Alm_ProductoWHERE Cod_Empresa = @CodEmpresa
> AND Cod_Sucursal = @CodSucursalORDER BY Cod_Producto
>
> Como hago este mismo query pero en PostgreSQL 8.2 (function)
Lo primero que tendrías que hacer (o haber hecho) es darle una lectura a
la documentación:
http://www.postgresql.org/docs/8.2/interactive/xfunc-sql.html#AEN36442
http://www.postgresql.org/docs/8.2/interactive/xplang.html
Saludos
--
Alexander Concha
http://www.buayacorp.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Manuel Lamas | 2007-09-26 04:49:45 | RE: DeleteTransactionInProgress y InsertTransactionInProgress |
| Previous Message | Volcom System | 2007-09-26 03:40:37 | Ayuda con Function |