Re: Oracledaki "table of object" tanimlamasi

From: "Adnan DURSUN" <a_dursun(at)hotmail(dot)com>
To: <pgsql-tr-genel(at)postgresql(dot)org>
Subject: Re: Oracledaki "table of object" tanimlamasi
Date: 2008-04-20 22:44:19
Message-ID: BLU136-DAV1053F44586D32B1A207E5DFAE60@phx.gbl
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-tr-genel


create or replace type randevuTakvimi as table of randevuTanimi;
Yukarıda bahsettiğiniz türden bir tanımlama yapamazsınız. Fakat
dilerseniz veriyi array değişkenler içine atarak daha sonra array içi arama
yapabilirsiniz.
Tabii array den "select" ile arama yapamazsınız. Bunun için özel
fonksiyonlar yazın bence..

İyi Çalışmalar
Adnan DURSUN
ASRIN Bilişim Ltd.

----- Original Message -----
From: "Mustafa Kemal UGURLU" <mustafakemalugurlu(at)gmail(dot)com>
To: <pgsql-tr-genel(at)postgresql(dot)org>
Sent: Friday, April 18, 2008 3:25 PM
Subject: [pgsql-tr-genel] Oracledaki "table of object" tanimlamasi

> Selamlar,
>
> Oracle daki bir uygulamamizi postgresql e donusturuyoruz.
> Yazilmis pek çok plsql fonkisyon var. Bunlardan birinde aşagıdaki gibi
> bir kod kullanıyorduk.
>
> create or replace type randevuTanimi as object
> (
>
> bolum int,
> altBolum int,
> randevuZamani date
> );
>
> Bunu postgresql e donusturdugumuzde
>
> create type randevuTanimi as
> (
>
> bolum integer,
> altBolum integer,
> randevuZamani timestamp
> );
> sorunsuz derlendi. Ancak asagidaki plsql tanimlamasinin pgsql
> karsiligini bulamadim
>
> plsql:
> create or replace type randevuTakvimi as table of randevuTanimi;
>
> bunu su sekilde kullaniyorduk:
>
> declare
> tablo randevuTakvimi := randevuTakvimi();
> begin
>
> loop
> ...
> ....
> ....
> ....
> tablo.extend;
> tablo(tablo.count) := randevuTanimi (
> vBolum,
> vAltBolum ,
> v_randevuZamani );
> .....
> .....
> .....
> .....
> end;
>
>
> end;
>
> Boylece hafizada istedigim veriyi tablo olarak olusturup select
> isleminde kullaniyordum.
>
> Bu işlemi pgsql de nasil yapabilirim?
>
> Tesekkurler
>
>
> adresine yollayabilirsiniz.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>

In response to

Browse pgsql-tr-genel by date

  From Date Subject
Next Message Hamdi ZEYREK 2008-04-23 19:52:04 Domain kullanimi
Previous Message Mustafa Kemal UGURLU 2008-04-18 12:25:20 Oracledaki "table of object" tanimlamasi