Skip to main content

34 posts tagged with "SQLite"

SQLite, the Embedded SQL Database Engine, and Its sqlite3 Command-Line Shell

View All Tags

Fixed: "sqlite_fail('constraint valid_priority already exists', 1)" After ALTER TABLE ADD CONSTRAINT in SQLite

· 10 min read
Jagdish Kumawat
Founder @ Dewiride

I replaced the list in a SQLite CHECK constraint with ALTER TABLE ... DROP CONSTRAINT and ADD CONSTRAINT, and the shell printed an empty table headed sqlite_fail('cons.... It looks like an error, but the change had worked. Here's what that header is, why the SQLite 3.54 shell prints it, and how to stop it.