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

SQL 語法 Cursor

2020-04-302023-07-07 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

SQL 可以快速處理大量的資料,但有時候需要依據 SQL 每一個紀錄 (Record) 裡的資料來進行處理,如把資料另外儲存或是計算成為新的欄位資料.這時候我們可以透過 CURSOR (搭配 OPEN , FETCH , CLOSE 以及 DECLARE HANDLER – https: […]

Read more

SQL – Case Sensitive & Insensitive

2020-04-232020-04-23 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

在做資料搜尋,比對時,什麼情況會 區分大小寫 ( Case sensitive ) 或是 不區分大小寫 ( Case insensitive ). 預設建立資料庫時使用的是 latin1 ( 關於資料庫編碼請參考 – https://benjr.tw/102156 ) ,只有 Binar […]

Read more

SQL Function – REGEXP_REPLACE & REGEXP_SUBSTR

2020-04-232023-09-27 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) REGEXP_REPLACE 想要把某字串內容取代成為另一個字串可以透過 函數 REPLACE .但是很可惜的是無法搭配 REGEXP (正規表示式) 來使用.這時候可以使用另外一個函數 REGEXP_REPLACE 來滿足. 正規表示式字元可 […]

Read more

MariaDB – 流程控制函數 ( Control Flow Functions )

2020-04-212020-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

SQL 語法 進階 GROUP BY

2020-04-172020-04-30 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) ,下面針對 SQL SELECT 的 GROUP BY 使用詳細說明. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name VARCHAR(20), Dept VARCHAR(20), jobTit […]

Read more

SQL 語法 進階 SELECT – Date/Time Periods

2020-04-162020-04-17 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) . 我有一個溫度統計(數字) 的資料庫,要如何針對時間區間 (Date Time) 來統計資料,可以使用函數 UNIX_TIMESTAMP 來分類,搜尋. 先建立一個資料庫 (testdb) 與 tables (tempsta) 格式為 數字欄 […]

Read more

Linux – timedatectl & chronyd (systemd)

2020-03-122024-06-11 adminLinux, RedHat / CentOS

Loading

測試作業系統 CentOS 8 x86_64 (虛擬機) 目前 Linux 上的時間同步 NTP ( Network Time Protocol , 透過這個協定跟 NTP Server 的時間來同步) 是透過 chronyd 這個服務,下面來看一下用法. timedatectl 先來看一下 tim […]

Read more

Linux – XRDP (remote desktop protocol)

2020-03-062020-03-08 adminRedHat / CentOS

Loading

測試環境為 XRDP Server ( CentOS 8 ) – IP : 192.168.111.177 測試環境建議可以先關閉 firewall 與 selinux https://benjr.tw/95368 Windows Remote Desktop (Windows 10) […]

Read more

CentOS 8 – Routing Table

2020-03-052021-04-12 adminRedHat / CentOS

Loading

測試作業系統 CentOS 8 x86_64 (虛擬機) 如果需要再開機後新增加 Routing Table ,以前會寫在 /etc/rc.d/rc.local ,不過自從系統改成 systemd – https://benjr.tw/94315 之後,這個方式需要修改設定,請參考 &# […]

Read more

CentOS 8 – Security PXE Boot

2020-02-192024-07-16 adminLinux, RedHat / CentOS

Loading

PXE (Preboot eXecution Environment) 主要讓系統可以透過網路開機並安裝作業系統(或是 LiveCD),在網卡上有一塊 ROM (Firmware) 裡面存放了一些基本的網路協定 如:Internet Protocol (IP), User Datagram Prot […]

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.