문제

Im working on my second project with sqlite3 and have a question.

What is the difference between working with rowid and/or working with own AUTOINCREMENT INTEGER value?

Is one of both better/faster than the other?

도움이 되었습니까?

해결책

According to the Sqlite documentation the difference is that the rowid can be reassigned, while an AUTOINCREMENT INTEGER can not.

To quote the important part:

(T)he use of AUTOINCREMENT requires additional work to be done as each row is inserted and thus causes INSERTs to run a little slower.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top