hi, apakah ada perintah dari sql+ atau dari oraclenya buat dump hasil querynya langsung ke bentuk xls, csv?
selama ini kalo pake toad, kalo saya query bisa saya right click hasilnya buat di export ke xls thx On 7/22/05, Ferry <[EMAIL PROTECTED]> wrote: > Untuk mengeluarkan data dr oracle ke excel sehingga npk itu bisa tetap 5 > digit dengan angka 0 didepan, > manipulasi isi kolom tabel yang akan diexport pada saat proses export > berlangsung. > > Alternatifnya: > 1. Gunakan fungsi LPAD(SUBSTR(kol,1,LENGTH(TRIM(BOTH ' ' FROM kol))), > LENGTH(kol),'0') > > SQL> create table tes1 (kol char(5)); > SQL> insert into tes1 VALUES (1); > SQL> insert into tes1 VALUES (23); > SQL> SELECT LPAD(SUBSTR(kol,1,LENGTH(TRIM(BOTH ' ' FROM kol))), > LENGTH(kol),'0') > 2 FROM tes1; > > LPAD(SUBSTR(KOL,1,LENGTH(TRIM(BOTH''FROMKOL))),LENGTH(KOL),'0') > ---------------------------------------------------------------------------- > ---- > 00001 > 00023 > > > 2. Buat tabel baru untuk maksud Anda dan tabel ini digunakan pada proses > export. > > SQL> CREATE TABLE tes2 AS SELECT > 2 LPAD(SUBSTR(kol,1,LENGTH(TRIM(BOTH ' ' FROM kol))), LENGTH(kol),'0') > kol > 3 FROM tes1; > Table created. > > SQL> SELECT * FROM tes1; > > KOL > ----- > 1 > 23 > > SQL> SELECT * FROM tes2; > > KOL > ------------------------- > 00001 > 00023 > > kemudian gunakan tabel tes2 untuk diexport. > > > semoga membantu > ferry. > > > ----- Original Message ----- > From: "Tari Ndut" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, July 21, 2005 8:22 AM > Subject: [indo-oracle] Download ke excel utk angka 0 di depan > > > > Selamat Pagi semua, > > > > Saya ingin mendownload dr oracle ke excel untuk data karyawan, > > yang saya download terdiri dari npk, nama etc... > > npk itu terdiri dari 5 digit dan digit didepannya itu 0, > > contoh : > > npk nama > > 00001 Kurniawan > > 00045 Asep > > dst... > > type dari npk itu di table adalah char (5), > > ketika saya download ke excel > > hasilnya adalah > > npk nama > > 1 Kurniawan > > 2 Asep > > dst... > > > > kemudian sintak yang ada di form bulider itu aku kasih petik( ' ) > > data yang keluar > > npk nama > > '00001 Kurniawan > > '00002 Asep > > > > Data npk di excel itu digunakan untuk rumus tertentu.. sehingga apabila > depannya ada petik ( ' ) > > maka tidak bisa digunakan sebagai rumus ( vlookup).... > > dan apabila saya tidak menggunakan petik maka data npk di excel juga tidak > bisa digunakan sebagai rumus( karena harus 5 digit) ... > > > > pertanyaan: > > - Bagaimanakah mengeluarkan data dr oracle ke excel sehingga npk itu bisa > tetap 5 digit dengan angka 0 didepan, dan bisa digunakan sebagai rumus ( > vlookup) ? > > > > > > Terima Kasih sebelumnya, > > > > Tari. > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > -- > > -----------I.N.D.O - O.R.A.C.L.E--------------- > > Keluar: [EMAIL PROTECTED] > > Website: http://indo-oracle.blogspot.com > > ----------------------------------------------- > > > > Bergabung dengan Indonesia Thin Client User Groups, > > Terminal Server, Citrix, New Moon Caneveral, di: > > http://indo-thin.vze.com > > Yahoo! Groups Links > > > > > > > > > > > > > > -- > -----------I.N.D.O - O.R.A.C.L.E--------------- > Keluar: [EMAIL PROTECTED] > Website: http://indo-oracle.blogspot.com > ----------------------------------------------- > > Bergabung dengan Indonesia Thin Client User Groups, > Terminal Server, Citrix, New Moon Caneveral, di: > http://indo-thin.vze.com > Yahoo! Groups Links > > > > > > > ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h21a448/M=362131.6882499.7825260.1510227/D=groups/S=1705007183:TM/Y=YAHOO/EXP=1124702657/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> -- -----------I.N.D.O - O.R.A.C.L.E--------------- Keluar: [EMAIL PROTECTED] Website: http://indo-oracle.lizt.org (NEW) ----------------------------------------------- Bergabung dengan Indonesia Thin Client User Groups, Terminal Server, Citrix, New Moon Caneveral, di: http://indo-thin.vze.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/indo-oracle/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

