如果你还没有安装或者使用过 sqlite,可以借助 SQLite3 安装、基本操作 入门。 1. 创建数据库 test.db cd ~/ sqlite3 test.db 这
如果你还没有安装或者使用过 sqlite,可以借助 SQLite3 安装、基本操作 入门。
1. 创建数据库 test.db
cd ~/
sqlite3 test.db
这样在 ~/ 目录下面就生成一个数据库文件 test.db.
2. 创建表 song
create table if not exists song (path TEXT, title varchar(20));
创建一个名称为 song 的数据库表,包含 path、title 两个字段,类型分别是 Text、varchar.
3. 插入数据
insert into song values('/mnt/sdcard/music','only you');
insert into song values('/mnt/sdcard/music','love');
insert into song values('/exte/music','thinking');
共插入 3 条数据。
这个时候,验证一下,数据库表中的数据。查询:
select * from song;
4. 查询指定条件的数据
select * from song where path='/mnt/sdcard/music'
或者
select * from song where path="/mnt/sdcard/music"
现在有个需求,查出所有 / 目录下面的歌曲信息?
当然是模糊查询!
select * from song where path LIKE '/%';
或者
select * from song where path LIKE "/%";
轻松搞定!

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Notepad++7.3.1
Easy-to-use and free code editor
