Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の知る限り、SQLite は ROWID を自動的に生成します。(AUTOINCREMENT かどうかに関係なく)しかし、ROWID を明示的に指定し、INSERT で ROWID が指定されていない場合はエラーを発生させたいと考えています。自動生成の代わりに。
これは可能ですか、どうすればこれを行うことができますか?
独自の AUTOINCREMENT フィールド (fe "id") を定義できます。AUTOINCREMENT フィールドを定義する場合、「フィールド名 (id?)」またはキーワード「rowid」を介してこれを選択できます。