Presentation is loading. Please wait.

Presentation is loading. Please wait.

Dasar MySQL. Mengakses MySQL Cara : –Via command line : shell –Via web interface : phpMyAdmin –Via bahasa pemrograman : PHP, Delphi, C, etc… –Via desktop.

Similar presentations


Presentation on theme: "Dasar MySQL. Mengakses MySQL Cara : –Via command line : shell –Via web interface : phpMyAdmin –Via bahasa pemrograman : PHP, Delphi, C, etc… –Via desktop."— Presentation transcript:

1 Dasar MySQL

2 Mengakses MySQL Cara : –Via command line : shell –Via web interface : phpMyAdmin –Via bahasa pemrograman : PHP, Delphi, C, etc… –Via desktop interface : SQLYog, Navicat MySQL Manager, MySQL Workshop, etc…

3 SQL Query SELECT something FROM tablename; SELECT COUNT(*) FROM tablename; SELECT DISTINCT something FROM tablename; DELETE FROM tablename WHERE condition; WHERE = filter data LIKE = qualifier untuk filter data yang mirip

4 LIMIT start, count = membatasi jumlah data yang dimunculkan MATCH(something) AGAINST(term) = melakukan filter pada field dengan FULLTEXT index MATCH(something) AGAINST(term IN BOOLEAN MODE) = matching dengan mode boolean UPDATE tablename SET updated_value = melakukan update data

5 ORDER BY = sorting data GROUP BY = mengelompokkan data

6 Join NATURAL JOIN tablename = menggabungkan kolom yang sama dari 2 buah tabel atau lebih JOIN tablename ON fieldname = menggabungkan kolom tertentu saja AS = menggunakan nama lain untuk sebuah field

7 Operator Logika AND, OR, NOT

8 Fungsi Built In MySQL String : –http://dev.mysql.com/doc/refman/5.0/en/stri ng-functions.htmlhttp://dev.mysql.com/doc/refman/5.0/en/stri ng-functions.html Waktu : –http://dev.mysql.com/doc/refman/5.0/en/dat e-and-time-functions.htmlhttp://dev.mysql.com/doc/refman/5.0/en/dat e-and-time-functions.html


Download ppt "Dasar MySQL. Mengakses MySQL Cara : –Via command line : shell –Via web interface : phpMyAdmin –Via bahasa pemrograman : PHP, Delphi, C, etc… –Via desktop."

Similar presentations


Ads by Google