我的问题是无法更新数据,因为在sq-lite数据库中的特殊字符单引号(')。 我想更新数据,但在字符串中的特殊字符(')单引号给Android中的sq-lite数据库如何更新错误。 查询是:更新查询不工作在sqlite
在上面的查询update pollm set dt_lastaccessedon='null',tx_choice1responsecount='1',tx_choice2responsecount='0',tx_choice3responsecount='0',tx_choice4responsecount='0',tx_choice5responsecount='0',tx_userresponse='TX_OPTION2',tx_questiontext='Is BPM mandatory?',tx_title='BPM',tx_choice1='yes',tx_choice2='no',tx_choice3='don't know', tx_choice4='null',tx_choice5='null',dt_availfrom='2011-07-08 00:00:00.0',dt_availto='2011-07-09 00:00:00.0',tx_status='Closed' where lmspollid='321'
的问题是单引号中的“不知道”这个字符串。因为这个查询不起作用。请帮我
看看我的修改答案。现在你有3个选择... :-) – user370305