草庐IT

relational-database

全部标签

### Error updating database. Cause: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncati

org.springframework.dao.DataIntegrityViolationException: ###Errorupdatingdatabase. Cause:com.mysql.cj.jdbc.exceptions.MysqlDataTruncation:Datatruncation:Outofrangevalueforcolumn'article_id'atrow1###Theerrormayexistincom/mszlu/blog/mapper/CommentMapper.java(bestguess)###Theerrormayinvolvecom.mszlu.bl

android - 是否有适用于 Android 的最新图形数据库?

计算机科学专业的学生试图涉足Android开发。我正在尝试构建一个我非常确定需要图形数据库的应用程序(它是一个在用户创建的对象之间创建关系的应用程序,想想单向思维导图)。我发现了一些为android移植的图形数据库。Neo4jforAndroidTitanforAndroidSparkseeMobile我对前两个的问题是我不确定它们是否是最新的。最后一次提交是从2013年开始的。我试图为neo4jforandroid构建示例项目,但卡在需要我使用androidsdk版本14的地方(我当前的sdk管理器api23不包括下载api14的选项)。现在我不确定是否应该继续尝试让它运行,因为我不

【数据库错误】Could not create connection to database server. Attempted reconnect 3 times. Giving up.

错误日志:java.sql.SQLNonTransientConnectionException:Couldnotcreateconnectiontodatabaseserver.Attemptedreconnect3times.Givingup. atcom.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110) atcom.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) atcom.mysql.cj.jdbc.

android - 非法状态异常 : database already closed (using ViewPager)

我对导致此错误的原因感到困惑,因为我已确定我正在正确关闭我的数据库适配器(至少我认为我是)。以下是LogCat的内容(它们的标签都是AndroidRuntime):FATALEXCEPTION:mainjava.lang.IllegalStateException:database/data/data/com.acedit.assignamo/databases/data.db(conn#0)alreadyclosedatandroid.database.sqlite.SQLiteDatabase.verifyDbIsOpen(SQLiteDatabase.java:2082)atan

android - 房间 : related entities - usable public constructor

为了获得与Room的OneToMany关系,我创建了一个带有@Embedded对象和@Relation的POJO变量。dataclassSubjectView(@Embeddedvarsubject:Subject,@Relation(parentColumn="idWeb",entityColumn="subject_id",entity=Topic::class)vartopics:List?)但是在编译的时候出现了这个错误error:EntitiesandPojosmusthaveausablepublicconstructor.Youcanhaveanemptyconstruc

springboot启动报错:No such extension org.apache.dubbo.rpc.Protocol by name XXX, no related exception

springboot整合的dubbo,启动时报错,Nosuchextensionorg.apache.dubbo.rpc.Protocol,意思就是说没有这样的协议,应检查配置文件中的协议名称是否是dubbo协议的。java.lang.IllegalStateException:Nosuchextensionorg.apache.dubbo.rpc.Protocolbynamestudent,norelatedexceptionwasfound,pleasecheckwhetherrelatedSPImoduleismissing. atorg.apache.dubbo.common.exte

android - 错误 - android.database.CursorIndexOutOfBoundsException : Index 0 requested,,大小为 0

我正在尝试做一个数据库,但是我有一个问题...这是日志:E/AndroidRuntime(894):FATALEXCEPTION:mainE/AndroidRuntime(894):java.lang.IllegalStateException:CouldnotexecutemethodoftheactivityE/AndroidRuntime(894):atandroid.view.View$1.onClick(View.java:3044)E/AndroidRuntime(894):atandroid.view.View.performClick(View.java:3511)E/

android - 房间 : Cannot access database on the main thread since it may potentially lock the UI for a long period of time

在主Activity中,我有包含成员和点击监听器的LiveData。如果我点击一个成员,那么他的ID将通过intent.putExtra传递。该ID稍后会传递给在此Activity中打开的方法。通过此Activity,我想查看成员的详细信息。在我的MemberInfoActivity中,我标记了我的问题所在的一行。它向我显示此错误:无法在主线程上访问数据库,因为它可能会长时间锁定UI。我的DAO包含以下代码:@Query("SELECT*FROMmember_tableWHEREMemberID=:id")MembergetMemberInfo(longid);这是我的主要Activi

android.database.sqlite.SQLiteException : no such column: aa: , 编译时:Select Name from stud Where Address=aa

我正在尝试从androidsqlite数据库中检索数据,但它的givine异常是没有这样的列:SqliteSelectQuery是-:c=db.rawQuery("SelectNamefromstudWhereAddress="+a,null);异常(exception):-07-0418:07:00.888:I/Database(648):sqlitereturned:errorcode=1,msg=nosuchcolumn:aa07-0418:07:00.910:D/AndroidRuntime(648):ShuttingdownVM07-0418:07:00.910:W/dalv

java - 编译时由: android. database.sqlite.SQLiteException : near "": syntax error (code 1): ,引起:

11-2703:32:04.471:E/AndroidRuntime(23137):Causedby:android.database.sqlite.SQLiteException:near"order":syntaxerror(code1):,whilecompiling:createtableorder(_idintegerprimarykeyautoincrement,origintextnotnull,quantityintegernotnull);MyDatabaseclass:publicclassMyDatabaseextendsSQLiteOpenHelper{publ