MySQL入門


| 851

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

用 Python 自學程式設計:程式設計思維入門

用 Python 自學程式設計:程式設計思維入門

MTR04_0819

MTR04_0819

資訊安全:湊雜與加密

資訊安全:湊雜與加密



Sponsored



Comments