79342973

Date: 2025-01-09 14:33:59
Score: 0.5
Natty:
Report link

Old thread but it was my first search result so might as well contribute to it

Shawn's answer slightly modified for Windows PowerShell did the trick for me

.\sqlite3.exe mydatabase.sqlite ".schema --nosys" | .\sqlite3.exe copy.sqlite

Ignoring the intermediate file, this is doing the same as bells' 5-step command, with the --nosys option omitting the auto generated "sqlite_..." tables which are the source of the error

Also, JIC for someone just starting with SQLite which might only interface with it from client code (e.g. C, python, etc.), the sqlite3 program can be downloaded from the official SQLite website. I used the 3.47.2 version (for x64)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: JustAnotherAnon