MySQL入門


PHPMyAdmin

PHPMyAdmin

DB

建立資料庫

CREATE DATABASE `DBname`

Create DB

刪除資料庫

DROP DATABASE `DBname`

Delete DB

查看已建立的資料庫

SHOW DATABASES

Show DB

Table

查詢

SELECT * FROM `TABLE`
SELECT * FROM `TABLE` WHERE col = 'val'

排序

ORDER BY

  • ASC (遞增)
  • DESC (遞減)
    SELECT * FROM `TABLE` WHERE col = 'val' ORDER BY ASC
    SELECT * FROM `TABLE` WHERE col = 'val' ORDER BY DESC
    
#SQL #MySQL






Related Posts

Vue.js 學習旅程Mile 1 – 歡迎介紹篇

Vue.js 學習旅程Mile 1 – 歡迎介紹篇

[ JS筆記 ] JavaScript 物件導向 - 基礎介紹

[ JS筆記 ] JavaScript 物件導向 - 基礎介紹

Day 101

Day 101






Comments