SQL 語法 – OVER 與 PARTITION BY 用法
在 MAriaDB 裡面提到關於 Window Functions Overview – https://mariadb.com/kb/en/window-functions-overview/ 關於這些 Function 函數定義請參考. Window Functions – […]
在 MAriaDB 裡面提到關於 Window Functions Overview – https://mariadb.com/kb/en/window-functions-overview/ 關於這些 Function 函數定義請參考. Window Functions – […]
安裝好 CentOS 8 (1905) 執行更新,會發現無法更新. 透過 dnf 也一樣,關於 YUM , DNF 請參考 Linux 套件管理 ( Package Manager ) 說明 – https://benjr.tw/2678 在官網有找到說明. https://wiki.c […]
測試環境為 CentOS 7 x86_64 (虛擬機) SELECT 後的資料有辦法儲存到變數嗎? 可以透過幾種方式. SELECT 查詢需注意資料庫字元編碼 Character Sets 與 文字排序 Collations ,請參考資料庫編碼 – https://benjr.tw/10 […]
測試環境為 CentOS 7 x86_64 (虛擬機) 這邊來看一下 MySQL / MariaDB SQL 變數 Variables 的種類. 先建立一個資料庫 (testdb) , 與 tables (employee) 格式為 Name char(20), Dept char(20), job […]
測試環境為 CentOS 7 / CentOS 8 x86_64 (虛擬機) 在建立 Stored Function 時卻得到以下的錯誤訊息. 奇怪另外一台相同的版本 MySQL (其實是 MariaDB) 可以建立自訂函數,這是為什麼? 主要原因是當你有使用 Binlog 的機制時,會被限制建立 […]
測試環境為 CentOS8 / RHEL (Red Hat Enterprise Linux) x86_64 (虛擬機) 最近把作業系統換到 CentOS 8 ,使用了預設的磁區切割 (/home 佔去 80% 的空間,使用 LVM 分割),想說可以直接透過 LVM 把 /home 縮小, 把 / […]
如何找到重覆的資料 (Duplicate Row , Column or Record) 測試環境為 CentOS 8 x86_64 (虛擬機) 先建立一個測試用資料庫 (testdb) , 與 tables (employee) 格式為 K1 int(11) – auto_increm […]
為了避免硬碟損毀進而造成資料庫遺失,可以使用主從式資料庫 (Master Slave Replication) 的技術. Master 的資料庫會透過 Binlog 的機制將資料同步到 Slave . Master 不是真的會把資料複製一份到 Slave,而是 Master 會把所有會變動到資料的指 […]
如何找到最後一筆 (Last Row , Last Column or Latest Record) 輸入的資料. 測試環境為 CentOS 8 x86_64 (虛擬機) 先建立一個測試用資料庫 (testdb) , 與 tables (employee) 格式為 K1 int(11) – […]
測試環境 CentOS 8 64bits + Apache + php-fpm (與 CentOS 7 不同,請參考 – https://benjr.tw/101989 ) CentOS 8 + PHP Version 7.2.11 Server API 使用 FPM/FastCGI C […]