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
    • Bash shell script
    • Perl
    • PHP
    • Python
    • Node.JS
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • MariaDB JSON

admin

Python – dict 資料型態物件

2022-05-132022-05-23 adminLinux, Programming Language, Python, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 一般宣告的 List(串列)資料型態,其資料不好搜尋到,這時候可以使用 dic ( dictionary ),資料是由 key (鍵值,可使用 括字串(str),整數(int)與浮點數(float) ) + Value (值,可以為任何東西) […]

Read more

Linux – CentOS to CentOS Stream

2022-05-122022-05-18 adminLinux, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 目前正在使用的 CentOS Linux 8 End Of Life (EOL) 為 December 31st, 2021,想要繼續更新 CentOS8 方式有 2 種. CentOS repo 主要是修改 Repo 的地方到 vault.c […]

Read more

Python – List 資料型態物件

2022-05-122022-05-13 adminLinux, Programming Language, Python, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 當我們宣告一個 List(串列)資料型態 時就可以使用 這個 list 物件的 method 透過 list 物件的 append (插入在最後) 與 insert(指定插入位置) 的 method 執行結果. 以下是 list 物件的 met […]

Read more

Linux – 安裝 Python & pip

2022-05-102022-05-10 adminLinux, Programming Language, Python, RedHat / CentOS

測試環境為 CentOS 8 x86_64 (虛擬機) 安裝 Python (與 pip , Python 套件管理程式) 檢視一下 python 版本. 以及 pip 預設安裝了哪些套件. 簡單的 python 程式,只有透過 print 函數列印出 Hello . 執行 Python 程式.

Read more

Notepad++ – 取代 HTML 格式

2022-05-042022-05-04 adminWindows

測試環境 Windows 10 如何透過 Notepad++ 來取代掉文章內的 HTML 格式,範例如下. 可以透過 取代 Replace (Ctrl + H) 的 搜尋模式 / 規則運算式. 先把 <br> 換行字元換成 Windows 文字檔的 \r(carriage return) […]

Read more

MariaDB – max_allowed_packet size

2022-04-272022-04-27 adminLinux, MariaDB, Mysql, RedHat / CentOS

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

Read more

MariaDB – SELECT Auto increment Num column

2022-04-272022-04-27 adminLinux, MariaDB, Mysql, RedHat / CentOS

測試環境為 CentOS 8 x86_64 一般我們可以透過 ROW_NUMBER() , RANK() , DENSE_RANK() – https://benjr.tw/104156 來建立序號.但無法依據某一特定欄位時要建立序號,可以使用以下方式. 先建立一個資料庫 (testdb) , 與資 […]

Read more

SQL – Primary & Unique

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

測試環境為 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

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

Read more

MariaDB – SELECT rows with max value

2022-04-122022-04-12 adminLinux, MariaDB, Mysql, RedHat / CentOS

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

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Python – Class 的 Static / Class / Abstract Method
  • Python – docstring
  • Python – _ (底線) 與 _ _(雙底線)
  • Python – __init__ , __str__ , __repr__
  • Python – Property & _attribute

近期留言

  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言
  • 「topvpn」於〈就是要上網 – OpenVPN ( 二) Client〉發佈留言
  • 「zoeyalee」於〈在 WordPress 使用 Facebook 讚的連結〉發佈留言
  • 「Carter」於〈VMware PXE 安裝〉發佈留言
  • 「路人甲」於〈iperf – Bidirectional test (雙向測試)〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
Powered by WordPress | Theme: Astrid by aThemes.