eolas/zk/SQLite.md

16 lines
305 B
Markdown
Raw Normal View History

2024-11-13 18:22:06 +00:00
---
tags: [databases, SQL, SQLite]
created: Wednesday, November 13, 2024
---
# SQLite
## INSERT OR IGNORE INTO
If table has a `UNIQUE` constraint on a field, insert if it is unique otherwise
skip without throwing a constraint error.
```sql
INSERT OR IGNORE INTO table_name (value) VALUES (:value)
```