0
我基本上是試圖創建一個新的數據庫,然後輸入按照以下數據庫值:sqlite3.OperationalError:沒有這樣的表:main.wordlist錯誤
def createindextables(self):
self.con.execute('create table urllist(url)')
self.con.execute('create table worldlist(word)')
self.con.execute('create table wordlocation(urlid,wordid,location)')
self.con.execute('create table link(fromid integer,toid integer)')
self.con.execute('create table linkwords(wordid,linkid)')
self.con.execute('create index wordidx on wordlist(word)')
self.con.execute('create index urlidx on urllist(url)')
self.con.execute('create index wordurlidx on wordlocation(wordid)')
self.con.execute('create index urltoidx on link(toid)')
self.con.execute('create index urlfromidx on link(fromid)')
self.dbcommit()
但在運行它「sqlite3.OperationalError:沒有這樣的表:main.wordlist錯誤「即將到來。我不知道爲什麼它無法檢測到搜索數據庫。它至少應該從現場編譯器運行。我不知道爲什麼它不能正常工作。誰能幫忙?
這就是我最初的想法,但我試圖改進它的所有方法,它並沒有真正解決。目前我沒有選擇 – 2012-02-04 20:15:31