Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

MariaDB

SQL 語法 SELECT Record with Maximum Value on a Column

2020-10-152022-12-27 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

如何找到資料特定欄位中最大 Maximum 的一筆資料與進階應用-如何在分類 (GROUP BY) 好的資料中找出各別最大 Maximum 的資料. 測試環境為 CentOS 8 x86_64 (虛擬機) 先建立一個測試用資料庫 (testdb) , 與 tables (employee) 格式為 […]

Read more

CentOS 8 設定 MariaDB Galera Cluster Server

2020-06-182020-06-20 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

作業環境 CentOS 8 x86_64 (虛擬機) MariaDB Galera Cluster 架構圖 每一個 Node 都需要以下的設定. Node1 : cn183 , IP – 192.168.111.183 Node2 : cn201 , IP – 192.168 […]

Read more

SQL – GET DIAGNOSTICS

2020-06-092023-01-10 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 執行 SQL 指令時,錯誤會直接顯示出來. 想要保留這錯誤訊息可以透過 GET DIAGNOSTICS 來處理,語法如下. GET DIAGNOSTICS 參考範例 – https://mariadb.com/kb/en/get-d […]

Read more

SQL Store Procedure 的例外處理 ( DECLARE Error Handler )

2020-06-032023-01-10 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 例外處理 DECLARE Error Handler 的概念很簡單就是在 Store Procedure 裡面發生錯誤時需要怎麼來處裡,如在使用 Cursor – https://benjr.tw/102792 時利用 NOT FOUND 來決 […]

Read more

SQL Function – LOAD DATA

2020-05-242020-06-04 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 主要想把 Microsoft Excel 轉成 MariaDB 的資料庫 ,Excel 檔案需事前先轉成 CSV 格式或是 OpenDocument .ods 檔案格式(建議),除了可以透過 Mysql 指令 外還可以透過 PHPMyAdmin […]

Read more

SQL Flow Control Statements – IF

2020-05-242020-05-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 7 x86_64 (虛擬機) 實際來看一個範例,用來檢視該物品的保存期限是否超過一年. 先來建立用來測試的資料.欄位為 K1 (INT – Primary Key) , ItemName 物品名稱 (VARCHAR) 與 T1 製造日期與時間 (Timestam […]

Read more

MariaDB – 常用搭配 GROUP BY 函數 ( Aggregate Functions )

2020-05-222021-03-16 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – https://benjr.tw/102953 數字函數 (Numeric Functions) – https://benjr.tw/101970 日 […]

Read more

MariaDB – 常用處理日期與時間函數 ( Date & Time Functions )

2020-05-222022-12-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – https://benjr.tw/102953 數字函數 (Numeric Functions) – https://benjr.tw/101970 日 […]

Read more

MariaDB – 常用處理資訊函數 ( Information Functions )

2020-05-222020-11-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – https://benjr.tw/102953 數字函數 (Numeric Functions) – https://benjr.tw/101970 日 […]

Read more

MariaDB – 常用處理字串函數 ( String Functions )

2020-05-222023-05-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 字串函數 ( String Functions ) 與 型別轉換 – 這邊介紹. 數字函數 (Numeric Functions) – https://benjr.tw/101970 日期與時間函數 (Date &#038 […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.