in sqlite3, can a select succeed within a transaction of insert?
问题 I begin a transaction, which is to insert several records into a table. Can I select the latest inserted record out of the database before the transaction commit? 回答1: Yes. Inside a transaction, your application sees everything. No other transaction, however, sees any part of the change. The point of a transaction is to make a sequence of statements appear to be one atomic change to the database. If you commit, all statements in the transaction are finalized, and everyone else can see the