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 語法 UPDATE

2024-02-202024-02-20 adminDatabase, Linux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS 8 (虛擬機) 這邊來使用一下 SQL UPDATE 的語法 先建立一個資料庫 (sbtest) , 與 tables (employee) 格式為 NName VARCHAR(20), Dept VARCHAR(20), jobTitle VARCHAR(20) 各 20 […]

Read more

MariaDB – tmp_disk_table_size

2023-11-152023-11-15 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 最近遇到一個硬碟爆滿的問題,路徑為 /var/tmp/systemd-private-[########]-mariadb.service-[CCCCCC] ,裡面一堆 .MAD 的檔案把系統硬碟都佔滿了. 上網查才知道當 SQL 語法所產生的資料大於記憶 […]

Read more

SQL – CREATE

2023-09-132023-09-13 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境 CentOS 8 (虛擬機) CREATE 指令的使用方式. CREATE DATABASE 建立資料庫. CREATE TABLE 建立資料表 CREATE TABLE LIKE 只複製資料表格式. CREATE TABLE SELECT FROM 完整複製資料表格式與資料.

Read more

MariaDB – Remove repeated words in string

2023-05-252023-05-25 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 欄位資料為 ‘ABC12 , C2CC , ABC12 , C2CC , DD23’ 這樣有辦法移除重覆出現在單字嗎? 目前看到一個方式 – https://stackoverflow.com/question […]

Read more

MariaDB – Thread Pool

2023-05-182023-05-18 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 預設在 SQL 使用上單一個 connect 只能使用單個 Thread,如果是比較複雜的指令的時候就會變慢. 參考文章 – https://mariadb.com/kb/en/thread-pool-in-mariadb/ 我們是可 […]

Read more

MariaDB – Condition Group

2023-05-162023-05-17 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 在 Group 資料時可以使用 IF 判斷式來決定使用哪個欄位,看一下下面範例. 建立測試用資料表. 檢視一下資料. 在 Group 資料時用 IF 判斷式來決定使用哪個欄位 程式說明: 最主要就是在 GROUP BY 時加上判斷式 IF(Fil […]

Read more

MariaDB – String Split using CTE

2023-05-112023-05-24 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 有辦法在單一欄位的資料依據分隔字元將字串拆解成陣列嗎? 如: 依據分隔字元 ‘ , ‘ 將以上字串拆解成以下陣列. MyaSQL / MariaDB 找不到相關函數 ( PostgreSQL 有相關 string_to_a […]

Read more

MariaDB – Count the number of occurrences of a string

2023-05-102023-05-10 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 有辦法計算字串 (如: This is MySQL , Mysql is Database) 裡面的字 (如: MySQL) 出現幾次嗎? 找不到相關函數.不過找到一個方式,參考文章 – https://www.tutorialspo […]

Read more

MariaDB – Count Number of Consecutive Occurrence of values

2023-02-132023-03-02 adminLinux, MariaDB, Mysql, RedHat / CentOS, SQLite

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 如何計算出連續資料的數目,參考文章 – https://stackoverflow.com/questions/36927685/count-number-of-consecutive-occurrence-of-values-in […]

Read more

MariaDB – START TRANSACTION

2023-01-102023-01-10 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS8 (虛擬機) 參考文章 – https://mariadb.com/kb/en/start-transaction/ START TRANSACTION [transaction_property [, transaction_property] … […]

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.