Contoh Query DELETE :
CREATE TABLE Rak (No_Rak CHAR (10) NOT NULL,Bagian_Rak VARCHAR (20),PRIMARY KEY (No_Rak));
INSERT INTO Rak VALUES('1','POJOK BAWAH'),('2','POJOK KANAN'),('3','POJOK ATAS'),('4','POJOK KIRI'),('5','POJOK DEPAN');
DELETE FROM Rak WHERE No_Rak='1';
Bentuk umum atau struktur Query DELETE sbb :
DELETE FROM nama_tabel WHERE kondisi;
Belum ada tanggapan untuk "Query DELETE di MySQL (Menghapus Data)"
Post a Comment