简体   繁体   中英

environment with Eclipse PyDev PyClips…error on selecting a view from db

So I have this environment with Python 2.5, PyDev 2.5 installed, PyClips, and I have a sqlite3 database. Looks like everything is fine and dandy until I run the following statement

  SQL = "select * from COMPLETE"
  cur.execute(SQL)

When I do this, eclipse throws the following error

cur.execute(SQL)
sqlite3.OperationalError: no such table: COMPLETE

Where COMPLETE is a view in sqlite db. Any ideas on why it is not seeing this view? Thanks in advance.

I was able to find a solution to this. I created the view directly with a SQL statement in the code instead, and now seems to be 'seeing' it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM