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

HTML 基礎

HTML 基礎

[Day 6] JS in Pipeline (6): CI/CD pipeline (1)

[Day 6] JS in Pipeline (6): CI/CD pipeline (1)

Selenium instagram

Selenium instagram






Comments