android.database.sqlite.SQLiteException:在"s"附近:语法错误(代码1): [英] android.database.sqlite.SQLiteException: near "s": syntax error (code 1): ,

查看:90
本文介绍了android.database.sqlite.SQLiteException:在"s"附近:语法错误(代码1):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

android.database.sqlite.SQLiteException:靠近"s":语法错误(代码1):,编译时:INSERT或REPLACE INTO电影(backdrop_path,id,original_language,orginal_title,overview,poster_path,title,popularity,adult,视频,vote_avg,vote_count,发行日期,收藏)值('/tbhdm8UJAb4ViCTsulYFL3lxMCd.jpg','76341','en','null','世界末日的故事发生在我们星球最远的地方,在一片荒芜的人文景观中,人类破碎了,大多数人都在疯狂地战斗在这个世界上,有两个叛乱分子正在奔波,他们也许能够恢复秩序.最大的是麦克斯,一个有行动的人,一个言不由衷的人,在妻子和妻子丧命之后寻求内心的平静.'Furiosa,一个行动的女人,一个相信自己的生存之路的女人,只要她能穿越沙漠回到她的童年故土,就可以实现.','/'/kqjL17yufvn9OVLyXYpvtyrFfak.jpg','疯狂的麦克斯:狂暴之路','19 .132107','假','假','7','4359','-546474976','假');在android.database.sqlite.SQLiteConnection.nativePrepareStatement(本机方法)在android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887)

android.database.sqlite.SQLiteException: near "s": syntax error (code 1): , while compiling: INSERT OR REPLACE INTO movies(backdrop_path,id,original_language,orginal_title,overview,poster_path,title,popularity,adult,video,vote_avg,vote_count,release_date,favourite) VALUES ('/tbhdm8UJAb4ViCTsulYFL3lxMCd.jpg','76341','en','null','An apocalyptic story set in the furthest reaches of our planet, in a stark desert landscape where humanity is broken, and most everyone is crazed fighting for the necessities of life. Within this world exist two rebels on the run who just might be able to restore order. There's Max, a man of action and a man of few words, who seeks peace of mind following the loss of his wife and child in the aftermath of the chaos. And Furiosa, a woman of action and a woman who believes her path to survival may be achieved if she can make it across the desert back to her childhood homeland.','/kqjL17yufvn9OVLyXYpvtyrFfak.jpg','Mad Max: Fury Road','19.132107','false','false','7','4359','-546474976','false' ); at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887)

推荐答案

您尝试插入 Max ,其中(')应该像 There那样转义\'s Max

you are trying to insert There's Max where (') should be escaped like There\'s Max

这篇关于android.database.sqlite.SQLiteException:在"s"附近:语法错误(代码1):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆