Search Postgresql Archives

Re: oracle script to postgresql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



FERREIRA William (COFRAMI) wrote:
> hi,
> 
> i'm trying to port an oracle script to postgresql, but i don't find
> any alternative for some problems this is an extract of the oracle
> script : 
> 
> DEFINE MDNSImportBlobDirectory =
> C:\Temp\_lm_\ExternalTablesSpace\mdns;
> @createFraweWorkTables_script.ddl; @createMDNSProcStockImport.sql
> &MDNSImportBlobDirectory; 
> 
> so i need to declare variables and to pass them to others script
> 
> is there any alternative for doing this ?

You can define variables in PG functions and pass them to other
functions:

DECLARE

   numRows integer := 5;

BEGIN

   perform add_5_min_table(numRows);

-- 
Guy Rouillier

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux