Python – 執行 MySQL Stored Procedure
測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 在 Python 中要怎麼去執行 MySQL(MariaDB) 的 Stored Procedure , 參考文章 https://pynative.com/python-mysql-execute-stor […]
測試環境為 CentOS 8 x86_64 (虛擬機) , MariaDB 10.3.28 在 Python 中要怎麼去執行 MySQL(MariaDB) 的 Stored Procedure , 參考文章 https://pynative.com/python-mysql-execute-stor […]
測試環境 CentOS8 – MariaDB 10.3.28 在 SQL Shell 下面是可以直接透過 system 指令去執行 Linux Shell 的程式,不過這個 system 指令基本安全考量才不能使用在 Stored Routines (Procedure , Functi […]
測試環境 CentOS8 – MariaDB 10.3.28 SQL Shell 在 SQL Shell 下面是可以直接透過 system 指令去執行 Linux 的 Shell 程式. Stored Routines ( Procedure , Function 或是 Trigger […]
測試環境 CentOS 8 , MariaDB 10.3.28 忘記 root 密碼了. 重新設定 root 密碼方式,參考文章 – https://www.a2hosting.com/kb/developer-corner/mysql/reset-mysql-root-password […]
測試環境為 CentOS 8 X86_64 (虛擬機) 在資料庫一個欄位儲存了 JSON 的陣列 Array [ 0.89, 12.99, 5.23, 2.04 ] 有辦法作加總嗎? 從網路找到寫好的 JSON 陣列加總函數 Function – https://stackoverflo […]
SQL 語法 SELECT 的字串比對 (需注意資料庫字元編碼 Character Sets 與 文字排序 Collations ,請參考資料庫編碼 – https://benjr.tw/102156 ) 測試環境為 CentOS 7 x86_64 (虛擬機) LIKE 通常會搭配 % […]
測試環境為 CentOS 8 x86_64 遇到一個奇怪問題, LONGBLOB , LONGTEXT 字元上限為 4 GB (2^32 -1),使用 4 bytes 紀錄前面字元使用長度.但是實際使用只能到 16777216 (約 16M),下面來看一下是怎麼了. 先建立一個資料庫 (testdb […]
測試環境為 CentOS 8 x86_64 要如何在 SELECT 時多產生一個自動遞增列的欄位? 可以透過兩種方式. 先建立一個資料庫 (testdb) , 與資料表 (Index1) 資料格式為 Student VARCHAR(200). 建立學生名冊. @變數 要在 SELECT 的資料加上序 […]
測試環境為 CentOS 8 x86_64 如果建立好的資料表沒有 Primary 或是 Unique ,在 phpMyAdmin 會顯示. 我們需要在 資料表 / 結構 的其中之一的資料欄位設定成為 unique .或是 Primary Key (主鍵) – 必須為 not null (不能為空) […]
測試環境為 CentOS 8 x86_64 虛擬機. 浮點數有 FLOAT , DOUBLE 跟 DECIMAL ,資料大小範圍如下. FLOAT[(M,D)] [SIGNED | UNSIGNED | ZEROFILL] -3.402823466E+38 to -1.175494351E-38 0 […]