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

Reformer - The Efficient Transformer

Reformer - The Efficient Transformer

【Day05】Vuex

【Day05】Vuex

Robotframework框架介紹

Robotframework框架介紹




Sponsored



Comments