How do i correctly query a sql ce 4.0 database file using adodbapi?
问题 I have the following method: def open(self, filename): if not os.path.exists(filename): raise IOError("Cannot find Game Database file {0}").__format__(filename) connstr = "Provider=Microsoft.SQLSERVER.CE.OLEDB.4.0; Data Source={0};".format(filename) conn = adodbapi.connect(connstr) curs = conn.cursor() query = "Select * from Patient;" curs.execute(query) results = curs.fetchall() for r in results: print r When this runs, the following error is rased on curs.execute(query): (<class 'adodbapi