Sorry command createnya kelupaan create table copy_barang as select * from barang where 1 = -1;
________________________________ From: Antonius Bayu <[email protected]> To: [email protected] Sent: Wed, May 19, 2010 8:04:05 AM Subject: Re: [indo-oracle] membuat table dari tabel lain tanpa mengcopy datanya. Select * from barang where 1 = -1 ________________________________ From: Aim <[email protected]> To: [email protected] Sent: Tue, May 18, 2010 12:01:21 PM Subject: [indo-oracle] membuat table dari tabel lain tanpa mengcopy datanya. Dear masters oracle. saya mau tanya tentang oracle, maklum saya masih newbie. bagaimana membuat table yang merupakan copyan dari table lain tapi tidak mengambil data dari tabel yang dicopy. misal: SQL> select * from barang; KODE_BAR NAMA HARGA STOCK -------- --------------- ---------- ---------- A-112 kaos 150000 15 A-113 baju 200000 15 A-114 tas 16000 15 A-115 sepatu 430000 15 A-116 kemeja 970000 15 SQL> create table copy_barang as select * from barang; Table created. MAKA HASILNYA : SQL> select * from copy_barang; KODE_BAR NAMA HARGA STOCK -------- --------------- ---------- ---------- A-112 kaos 150000 15 A-113 baju 200000 15 A-114 tas 16000 15 A-115 sepatu 430000 15 A-116 kemeja 970000 15 yang saya ingin tanyakan, saya ingin membuat table baru yang dicopy dari tabel lain tetapi hanya columnnya saja TIDAK TERMASUK DML-NYA. misAL: KODE_BAR NAMA HARGA STOCK -------- --------------- ---------- ---------- terima kasih lukman [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]

