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
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

SQLite

Python – Export SQLite AS CSV File

2023-02-022023-02-03 adminPython, SQLite

測試環境為 CentOS8 (虛擬機) 怎麼透過 Python 把 SQLiet 的資料匯出成 CSV 格式(CommSeparated Values 以逗號做區隔)的檔案. 我這邊有一個 SQLite 的檔案,裡面有一個資料表 cpu_meminfo 用來記錄目前 CPU 與 MEM 的使用率 ( […]

Read more

SQLite 常用指令

2022-10-062022-10-06 adminLinux, RedHat / CentOS, SQLite

建立測試用資料表,與其資料. SHOW TABLES SQLite 沒有 SHOW TABLES 指令,可以透過以下指令查詢現有的資料表. 執行結果 DESCRIBE Table SQLite 沒有 DESCRIBE Table 指令,可以透過以下指令查詢現有的資料表欄位. 執行結果 或 執行結果

Read more

Python – SQLite 時間函數

2022-10-042023-02-04 adminLinux, RedHat / CentOS, SQLite

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Python 存取 SQLite 資料庫請參考 – https://benjr.tw/104703 SQLite 的時間函數跟 MySQL / MariaDB 差蠻多的,以下來看幾個差異點. Now SQLite 沒有 now […]

Read more

Python SQLite – REGEXP SQL Query

2022-09-132022-09-13 adminLinux, RedHat / CentOS, SQLite

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Python 存取 SQLite 資料庫請參考 – https://benjr.tw/104703 當透過 Python 使用到 SQL 指令中的 REGEXP (正規表示式比對字串),但卻發生以下的錯誤訊息,參考文章 &#8 […]

Read more

Python – SQLite

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

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

Read more

近期文章

  • Python – 內建 CSV 模組
  • Python – Export SQLite AS CSV File
  • Python – psutil (Disk , NetWork)
  • Python – psutil (CPU , MEM)
  • MariaDB – START TRANSACTION

近期留言

  • 「菜单加密码」於〈Windows command – BCDEdit〉發佈留言
  • 「N/A」於〈Linux – iperf (Bind to host)〉發佈留言
  • 「topvpn」於〈就是要上網 – OpenVPN ( 二) Client〉發佈留言
  • 「zoeyalee」於〈在 WordPress 使用 Facebook 讚的連結〉發佈留言
  • 「Carter」於〈VMware PXE 安裝〉發佈留言

分類

其他操作

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