Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

Cara penggunaan Sql SELECT, Sql WHERE, ISql NSERT, Sql UPDATE, Sql DELETE Statement

Tutorial MySQL sebelumnya Sector Code sudah membahas tentang Tutorial Lengkap Cara Membuat Database MySQL di PhpMyAdmin, silahkan baca - baca jika belum paham, sekarang kita akan mencoba menggunakan statemen - statement yang ada di Database MySQL ini, praktekkan step by step ya,
Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement
Disini saya sudah mempunyai database dengan sebuah tabel dengan nama tblbiodata,

Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

Untuk praktek kali ini buatlah sebuah tabel dengan nama tblbiodata fieldnya tampak seperti tabel diatas,

SQL SELECT Statement Syntax ;

SELECT [columnlist] FROM [tablename]
SELECT * FROM [tablename]
SELECT nama,tempat_lahir,agama FROM tblbiodata
maka akan menghasilakan output 3 column nama, tempatlahir dan agama
Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

SQL WHERE Statement Syntax ;

[main-statement] WHERE [conditions]
SELECT nama,tempat_lahir,agama FROM tblbiodata WHERE nip=001
maka Output dari perintah sql diatas :

Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

SQL INSERT Statement Syntax ;

INSERT INTO [table_name] ( [column_list] ) VALUES ( [value_list] )
INSERT INTO tblbiodata ( nip,nama,tempat_lahir,tanggal_lahir,alamat,no_telpon,gender,agama,pendidikan ) VALUES ( '003','ScQQ3','Lahat','Islam','14-01-1992','Lahat','12345678','L','Islam','SD' )
Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

SQL UPDATE Statement Syntax ;

UPDATE [table_name] SET [column_name] = [column_value] WHERE [where_conditions]
UPDATE tblbiodata SET nama = 'Sector COde' WHERE nip='003'
Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement

SQL DELETE Statement Syntax ;

DELETE FROM [table_name] WHERE [where_conditions]
DELETE FROM tblbiodata WHERE nip='003'
Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement


Mungkin hanya segitu dulu tutorial tentang Sql SELECT, WHERE, INSERT, UPDATE, DELETE Statement ini, postingan selanjutnya akan dibahas lebih detail lagi, jangan lupa dishare jika bermanfaat ya terima kasih ;)