sqlite "database is locked" ( 积分: 100 )

  • 主题发起人 主题发起人 eire
  • 开始时间 开始时间
E

eire

Unregistered / Unconfirmed
GUEST, unregistred user!
当多线程更改数据库内容时会出现数据库文件被锁定.
 
请见<br><br>http://www.sqlite.org/faq.html#q5<br><br>里面说得很明白<br><br>Multiple&nbsp;processes&nbsp;can&nbsp;have&nbsp;the&nbsp;same&nbsp;database&nbsp;open&nbsp;at&nbsp;the&nbsp;same&nbsp;time.&nbsp;Multiple&nbsp;processes&nbsp;can&nbsp;be&nbsp;doing&nbsp;a&nbsp;SELECT&nbsp;at&nbsp;the&nbsp;same&nbsp;time.&nbsp;But&nbsp;only&nbsp;[red]one[/red]&nbsp;process&nbsp;can&nbsp;be&nbsp;making&nbsp;changes&nbsp;to&nbsp;the&nbsp;database&nbsp;at&nbsp;any&nbsp;moment&nbsp;in&nbsp;time,&nbsp;however.
 
后退
顶部