klo diluar Function bisa berhasil pak dan no urutnya bertambah, oh utk parameter input&output itu sebenernya ada parameter kode table itu pak tapi setelah sy coba masih belum terupdate
--- Pada Kam, 6/5/10, murdi santoso <[email protected]> menulis: Dari: murdi santoso <[email protected]> Judul: Re: [indo-oracle] tidak bisa update table didalam fungsi Kepada: [email protected] Tanggal: Kamis, 6 Mei, 2010, 5:58 AM script update nya dah dicoba namual blom diluar function..? dan apakah berhasil..? dan parameter input funtion itu berfungsi untuk apa..? karna tdk masuk ke dalam script update sama skali..? UPDATE TD_NOMOR_TRANSAKSI SET NO_URUT=NO_URUT+ 1 ??? WHERE KD_TABLE = 'tm_detail_asset' ; ??? mungkin kd_table harus huruf capital upper(kd_table) . ____________ _________ _________ __ From: Teguh Susanto <teguh4milis@ yahoo.com> To: indo-oracle@ yahoogroups. com Sent: Thu, May 6, 2010 4:10:11 PM Subject: [indo-oracle] tidak bisa update table didalam fungsi kepada miliser &senior DBAsaya lagi buat function tapi belum berhasil banget karena update table (DDL) tidak berhasilini saya sertakan contoh scriptnyacreate or replaceFUNCTION GETNOMORTRANSAKSI ( fTable IN VARCHAR2 ) RETURN VARCHAR2 is hasil varchar2(20) ;vnomor varchar2(20) ;BEGIN UPDATE TD_NOMOR_TRANSAKSI SET NO_URUT=NO_URUT+ 1 WHERE KD_TABLE = 'tm_detail_asset' ; RETURN 'BEHASIL' ;EXCEPTION when others then return 'GAGAL';END GETNOMORTRANSAKSI; apabila fungsi tsb dirun pasti resultnya 'GAGAL', dan data di field no_urut tidak bertambah, mungkin dari miliser or senior DBA bisa kasih solusi masalah saya..a.tas perhatiannya terimakasih [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

