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

Database

Python – SQLite

2022-08-232022-09-13 adminLinux, Python, RedHat / CentOS, SQLite

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 參考範例 – https://note.charlestw.com/python-how-to-connect-sqlite/ python 可以將資料儲存在 sqlite 資料庫裡. 匯入 sqlite3 套件. 透過 sqlit […]

Read more

MariaDB – max_allowed_packet size

2022-04-272023-09-11 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 遇到一個奇怪問題, LONGBLOB , LONGTEXT 字元上限為 4 GB (2^32 -1),使用 4 bytes 紀錄前面字元使用長度.但是實際使用只能到 16777216 (約 16M),下面來看一下是怎麼了. 先建立一個資料庫 (testdb […]

Read more

MariaDB – Generate auto increment column in select query

2022-04-272022-12-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 要如何在 SELECT 時多產生一個自動遞增列的欄位? 可以透過兩種方式. 先建立一個資料庫 (testdb) , 與資料表 (Index1) 資料格式為 Student VARCHAR(200). 建立學生名冊. @變數 要在 SELECT 的資料加上序 […]

Read more

SQL – Primary & Unique

2022-04-222022-04-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 如果建立好的資料表沒有 Primary 或是 Unique ,在 phpMyAdmin 會顯示. 我們需要在 資料表 / 結構 的其中之一的資料欄位設定成為 unique .或是 Primary Key (主鍵) – 必須為 not null (不能為空) […]

Read more

SQL 資料型態 – FLOAT , DOUBLE & DECIMAL

2022-04-212022-04-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 浮點數有 FLOAT , DOUBLE 跟 DECIMAL ,資料大小範圍如下. FLOAT[(M,D)] [SIGNED | UNSIGNED | ZEROFILL] -3.402823466E+38 to -1.175494351E-38 0 […]

Read more

MariaDB – ROW_NUMBER() , RANK() 與 DENSE_RANK()

2022-04-122023-02-13 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 要找出指定欄位的最大(小)值,可以透過 MAX() , MIN() 函數來搜尋,但是要知道是哪一行的資料(想一併得知其他欄位資料)時,可以透過 ROW_NUMBER() 函數來使用. 先建立一個資料庫 (testdb) , 與 Student […]

Read more

MariaDB – Correlated Subqueries

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

Loading

測試環境為 CentOS 8 X86_64 (虛擬機) 怎麼在 GROUP 時,找到 第二,三 … 的值. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name char(20), Dept char(20), jobTitle char(20 […]

Read more

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

文章導覽

較舊的文章
較新的文章

近期文章

  • 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.