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

MariaDB – LIMIT row_count OFFSET offset

2022-03-092022-03-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 要找出最大值的時候可以透過 MAX 或是 LIMIT 1,但是要找第二,三 … 的值呢? 可以透過 LIMIT 先建立一個資料庫 (testdb) , 與 tables (Employee) 格式為 ID INT(11) 以及 Sa […]

Read more

MariDB – SOUNDS LIKE

2022-03-092022-03-09 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) SOUNDS LIKE 可以用來比對發音很像的字串. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name char(20), Dept char(20), jobTitle char(20) 各 2 […]

Read more

MariDB – Logging

2022-02-252022-02-25 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) . 關於 MariaDB 的 Logging 參考文章 – https://betterstack.com/community/guides/logging/database/how-to-start-logging-with-ma […]

Read more

MariaDB – Time Zone

2022-02-242022-02-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) . 遇到一個奇怪的問題,在不同機器上使用 UNIX_TIMESTAMP(TS) 函數 (該函數功能為把時間轉換成為數字,轉換方式為: 指定的時間 -(減去) 1970-01-01 00:00:00 得到的秒數差, 回傳為無符號整數) 卻得到不同 […]

Read more

MariaDB – ORDER BY CASE

2022-02-152022-12-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 SELECT 資料可以依據藍未來排序 ORDER BY Column,但是我想要依據某欄位內的特定字串來排序,這樣有辦法嗎?可以透過 ORDER BY CASE 來做. 先建立測試要用的資料庫. 建立測試用資料表. 新增使用者與其測試資料. 檢視一下資料. […]

Read more

MariaDB 函數 – JSON_QUOTE , JSON_UNQUOTE

2022-02-082022-02-08 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 JSON 有保留字元,可以直接用以下函數來轉換. \” Double quote (“) \b Backslash \f Formfeed \n Newline (linefeed) \r Carriage return \t Ta […]

Read more

MariaDB – 做出類似 Excel 的 SUMIF , COUNTIF 的功能

2021-08-112022-12-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機 MariaDB 有類似 Excel 的 SUMIF , COUNTIF 函數可以使用嗎? 答案是沒有,但我們可以使用 CASE OPERATOR 流程控制函數 (Control Flow Functions) 搭配 SUM , COUNT 函數即可 […]

Read more

MariaDB 函數 – JSON_TYPE , JSON_LENGTH 與 JSON_DEPTH

2021-07-222021-07-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 先來看一下 JSON 不同的資料類型 (透過 JSON_TYPE 函數來檢視目前資料是哪一種型態): 物件 (Object) : 使用 { } , 無序成對 (pair) 的 {鍵 Key name :值 value} 方式來儲存,鍵值之間使用逗號來分隔. […]

Read more

MariaDB JSON

2021-07-222022-11-23 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

MariaDB 函數 – MAX , MIN 與 GREATEST , LEAST 函數

2021-07-092022-12-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 計算欄(column) 與 列(row) 的最大與最小值可以使用哪些函數來完成呢! 先建立測試要用的資料庫. 欄(column) 最大與最小值 可以使用 MAX(column name) 與 MIN(column name) 函數來檢視. 列(row) 最 […]

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.