# ignore_check_constraints

> Temporarily stop enforcing CHECK constraints on this connection.

Source: https://sqlly.app/sql-configuration/sqlite/ignore-check-constraints
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).

**Default**

`0 (off)`

**Range**

0, 1

**Restart needed**

No

**Default checked on**

SQLite 3.5x

## What it does

Off by default, so CHECK constraints are enforced. Turning it on skips the CHECK clause on INSERT and UPDATE, while NOT NULL, UNIQUE and PRIMARY KEY rules still apply. The setting rides on the connection and is not persisted.

## Default value

`0 (off)`. Off (a stock SQLite 3.5x build), meaning CHECK constraints are enforced.

## Check the current value

```
PRAGMA ignore_check_constraints;

SELECT * FROM pragma_ignore_check_constraints;   -- table-valued form, usable in queries
```

## Change it

```
PRAGMA ignore_check_constraints = ON;   -- this connection only
```

No restart. It applies at once to the connection that runs it and is lost when that connection closes, so set it every time a connection opens.

## When to change it

For staged data loads that must insert rows known to break a CHECK, then clean them up before real traffic reaches the table.

## What can go wrong

Rows written while it is on stay invalid after it is off again, and nothing re-checks them automatically; follow every bulk load with a query that reruns the CHECK expressions and fixes or removes what fails.

## Questions about ignore_check_constraints

### What is the default value of ignore_check_constraints in SQLite?

0 (off). Off (a stock SQLite 3.5x build), meaning CHECK constraints are enforced.

### Does changing ignore_check_constraints require a restart?

No. No restart. It applies at once to the connection that runs it and is lost when that connection closes, so set it every time a connection opens.

### When should I change ignore_check_constraints?

For staged data loads that must insert rows known to break a CHECK, then clean them up before real traffic reaches the table.

Back to all [SQLite settings](https://sqlly.app/sql-configuration/sqlite), or check the [SQLite manual](https://www.sqlite.org/pragma.html) for every option.

## Related SQLite settings

- [`foreign_keys` Enforce FOREIGN KEY constraints.](https://sqlly.app/sql-configuration/sqlite/foreign-keys)
- [`defer_foreign_keys` Postpone foreign key checks to COMMIT for the current transaction.](https://sqlly.app/sql-configuration/sqlite/defer-foreign-keys)
