Jumat, 29 Mei 2015

Anwari

Data Manipulation Language

DML adalah kelompok perintah yang berfungsi untuk memanipulasi data dalam basis data, misalnya untuk pengambilan, penyisipan, pengubahan, dan penghapusan data. Perintah yang termasuk dalam kategori DML adalah : INSERT, DELETE, UPDATE, dan SELECT.

1. INSERT
Perintah ini digunakan untuk menambah data pada tabel, terdapat dua perintah yaitu :
INSERT INTO nama_tabel VALUES(nilai1,nilai2,nilai-n);
INSERT INTO nama_tabel (kolom1,kolom2,kolom-n) VALUES (nilai1,nilai2,nilai-n);

2. DELETE
Perintah ini digunakan untuk menghapus suatu data dalam tabel, data dalam kondisi tertentu atau seluruh data.
Perintah untuk menghapus seluruh data : DELETE FROM nama_tabel;
Perintah untuk menghapus data dalam kondisi tertentu : DELETE FROM nama_tabel [WHERE kondisi];

3. UPDATE
Perintah ini digunakan untuk mengubah isi data pada tabel
Perintahnya : UPDATE nama_tabel SET kolom1 = nilai1, kolom2 = nilai2 [WHERE kondisi];
Contoh mengubah semua nilai pada kolom alamat menjadi manonjaya

4. SELECT
Perintah SELECT digunakan untuk menampilkan isi dari suatu tabel atau data tertentu dari tabel tersebut.
Perintahnya : SELECT * FROM nama_tabel;

Perintah menampilkan hanya dalam kondisi tertentu saja :
SELECT kolom1, kolom2, kolom-n FROM nama_tabel;



2 Komentar:

As reported by Stanford Medical, It is in fact the ONLY reason women in this country get to live 10 years longer and weigh on average 19 KG lighter than us.

(Just so you know, it has totally NOTHING to do with genetics or some secret diet and really, EVERYTHING about "how" they are eating.)

BTW, I said "HOW", not "WHAT"...

TAP on this link to see if this easy quiz can help you discover your real weight loss possibility

Strange "water hack" burns 2 lbs overnight

Over 160 thousand men and women are using a easy and SECRET "liquids hack" to lose 1-2lbs every night in their sleep.

It's simple and works on everybody.

Here are the easy steps for this hack:

1) Go get a drinking glass and fill it up with water half glass

2) And now learn this weight losing HACK

and be 1-2lbs lighter in the morning!

Posting Komentar