草庐IT

do_some_database_stuff

全部标签

database - Unity3D 在 Windows Phone 8 (WP8) Build 中使用数据库的问题

我在Unity3d的WindowsPhone8中使用Sqlite数据库时遇到一些问题。如果我们使用sqlite数据库,UNITY不允许在WindowsPhone8中构建项目。问题的原因是在WindowsPhone中使用System.Data.dll8build.Thisdll在其他版本(Android,IOS)中运行完美。我还尝试了不同的dll,例如Microsoft的System.Data.dll、.Net3.5和4.0FrameworkSystem.Data.dll、Mono的System.Data.dll,但这些都不起作用。有人在Unity3d的WP8构建中使用过sqlite数据

database - Unity3D 在 Windows Phone 8 (WP8) Build 中使用数据库的问题

我在Unity3d的WindowsPhone8中使用Sqlite数据库时遇到一些问题。如果我们使用sqlite数据库,UNITY不允许在WindowsPhone8中构建项目。问题的原因是在WindowsPhone中使用System.Data.dll8build.Thisdll在其他版本(Android,IOS)中运行完美。我还尝试了不同的dll,例如Microsoft的System.Data.dll、.Net3.5和4.0FrameworkSystem.Data.dll、Mono的System.Data.dll,但这些都不起作用。有人在Unity3d的WP8构建中使用过sqlite数据

sqlite - 柔性 : How do bind an Sqlist query at an S:list to an S:Textarea

在flexbuilder4.6中,我试图绑定(bind)来自sql查询的数据,显示在中使用项目渲染器我的代码如下:这里,我的sql,通过显示:protectedfunctionbuttonX():void{varsqlConnection:SQLConnection=newSQLConnection();sqlConnection.open(File.applicationDirectory.resolvePath("testeDb.sqlite"));varstmt:SQLStatement=newSQLStatement();stmt.sqlConnection=sqlConnec

sqlite - 柔性 : How do bind an Sqlist query at an S:list to an S:Textarea

在flexbuilder4.6中,我试图绑定(bind)来自sql查询的数据,显示在中使用项目渲染器我的代码如下:这里,我的sql,通过显示:protectedfunctionbuttonX():void{varsqlConnection:SQLConnection=newSQLConnection();sqlConnection.open(File.applicationDirectory.resolvePath("testeDb.sqlite"));varstmt:SQLStatement=newSQLStatement();stmt.sqlConnection=sqlConnec

python - SQLite3 Python : How to do an efficient bulk update?

我可以使用以下代码在Python(2.7)上的Sqlite3中进行非常高效的批量插入:cur.executemany("INSERTINTO"+tableName+"VALUES(?,?,?,?);",data)但我无法获取更新以高效工作。我认为这可能是数据库结构/索引的问题,但即使在只有一个100行的表的测试数据库上,更新仍然需要大约2-3秒。我尝试了不同的代码变体。我拥有的最新代码来自thisanswer之前关于update和executemany的问题,但它对我来说和我所做的任何其他尝试一样慢:data=[]forsinsources:source_id=s['source_id

python - SQLite3 Python : How to do an efficient bulk update?

我可以使用以下代码在Python(2.7)上的Sqlite3中进行非常高效的批量插入:cur.executemany("INSERTINTO"+tableName+"VALUES(?,?,?,?);",data)但我无法获取更新以高效工作。我认为这可能是数据库结构/索引的问题,但即使在只有一个100行的表的测试数据库上,更新仍然需要大约2-3秒。我尝试了不同的代码变体。我拥有的最新代码来自thisanswer之前关于update和executemany的问题,但它对我来说和我所做的任何其他尝试一样慢:data=[]forsinsources:source_id=s['source_id

android - E/SQLiteLog: (10) Failed to do file read, got : 0, amt : 100, last Errno: 2

我在Android的SQLite数据库中实现外键。我的数据库在没有FK的情况下运行良好,但现在,我遇到了几个问题。一个是当我尝试获取对数据库的引用时,我遇到了这个错误。E/SQLiteLog﹕(10)Failedtodofileread,got:0,amt:100,lastErrno:2我的函数:publicsynchronizedSQLiteDatabaseopenDatabase(){if(mOpenCounter.incrementAndGet()==1){//OpeningnewdatabasemDatabase=mDatabaseHelper.getWritableDatab

android - E/SQLiteLog: (10) Failed to do file read, got : 0, amt : 100, last Errno: 2

我在Android的SQLite数据库中实现外键。我的数据库在没有FK的情况下运行良好,但现在,我遇到了几个问题。一个是当我尝试获取对数据库的引用时,我遇到了这个错误。E/SQLiteLog﹕(10)Failedtodofileread,got:0,amt:100,lastErrno:2我的函数:publicsynchronizedSQLiteDatabaseopenDatabase(){if(mOpenCounter.incrementAndGet()==1){//OpeningnewdatabasemDatabase=mDatabaseHelper.getWritableDatab

java.lang.StringIndexOutOfBoundsException : index=0 length=0 in get sqlite database 异常

我正在尝试用这段代码打开一个可写的SQLite数据库...publicDataAdapterForServieClassopen()throwsSQLException{db=DBHelper.getWritableDatabase();returnthis;}但是我在db=DBHelper.getWritableDatabase();行中收到以下错误...06-1011:58:13.995:ERROR/AndroidRuntime(548):FATALEXCEPTION:main06-1011:58:13.995:ERROR/AndroidRuntime(548):java.lang

java.lang.StringIndexOutOfBoundsException : index=0 length=0 in get sqlite database 异常

我正在尝试用这段代码打开一个可写的SQLite数据库...publicDataAdapterForServieClassopen()throwsSQLException{db=DBHelper.getWritableDatabase();returnthis;}但是我在db=DBHelper.getWritableDatabase();行中收到以下错误...06-1011:58:13.995:ERROR/AndroidRuntime(548):FATALEXCEPTION:main06-1011:58:13.995:ERROR/AndroidRuntime(548):java.lang