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

OS

Python – dict 資料型態物件

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

Loading

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

Read more

Linux – CentOS to CentOS Stream

2022-05-122024-11-22 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 7/8 x86_64 (虛擬機) 目前正在使用的 CentOS Linux 7 end of life 為 June 30 2024 , CentOS Linux 8 End Of Life (EOL) 為 December 31st, 2021,想要繼續更新 CentOS […]

Read more

Python – List 資料型態物件

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

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) list 為 Mutable 物件(物件被創造出來後其值可以做改變), Python 其他資料型態物件為. Immutable objects – 物件被創造出來後其值無法做改變像是 int , float , string , t […]

Read more

Linux – 安裝 Python & pip

2022-05-102023-09-28 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 安裝 Python (與 pip , Python 套件管理程式) Python 需指定安裝的 Python 版本. 檢視一下 python 版本. pip 檢視一下 pip (Python 套件管理程式) 的版本. 更新 pip 到最新版本. […]

Read more

Notepad++ – 取代 HTML 格式

2022-05-042022-05-04 adminWindows

Loading

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

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

文章導覽

較舊的文章
較新的文章

近期文章

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