You are on page 1of 3

Nama : Taufik Hidayat

NIM : 701220222

1. Perubahan Terhadap nama field/colom


Query : alter table productnotes change note_id id_nota integer(10)

2. Perubahan terhadap tipe data


Query : alter table productnotes modify note_text char (100);
3. Penambahan Field
Query : alter table productnotes add nama_pembeli varchar (25);

4. Penghapusan Field
Query : alter table productnotes drop column nama_pembeli;
5. Buat Table baru dengan nama contact_cutomer

Query : create table contact_customer (


id_cust varchar (5),
hp_1 varchar (20),
hp_2 varchar (20)
);

6. Menghapus Table contact_customer


Query : drop table contact_customer :

You might also like