Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android Sqlite文本数据类型赢得';不接受空格和特殊字符?_Android_Sqlite - Fatal编程技术网

android Sqlite文本数据类型赢得';不接受空格和特殊字符?

android Sqlite文本数据类型赢得';不接受空格和特殊字符?,android,sqlite,Android,Sqlite,在我的sql中,创建了查询表,但未插入值 这是我的疑问 CREATE TABLE IF NOT EXISTS BpFullDirectory ( codeval integer primary key, name text, jobTypeName text, DOB text, cid text, countryCode text, countryId text, countryName text, email text, hobbies

在我的sql中,创建了查询表,但未插入值

这是我的疑问

CREATE TABLE IF NOT EXISTS BpFullDirectory
( codeval integer primary key, 
  name text, 
  jobTypeName text, 
  DOB text, 
  cid text, 
  countryCode text, 
  countryId text, 
  countryName text, 
  email text, 
  hobbies text, 
  joinDate text, 
  mobileApp text, 
  mobileNumber text, 
  nickname text, 
  officeExtentionNumber text, 
  officeNumber text, 
  phoneModel text, 
  socialMediaPlatform text, 
  subName text, 
  twitterHandle text, 
  imagestring text, 
  jobcategory text);
--这是我的插入表查询

INSERT INTO BpFullDirectory   
(codeval,name,jobTypeName,DOB,cid,countryCode,
countryId,countryName,email,hobbies,joinDate,
mobileApp,mobileNumber,nickname,officeExtentionNumber,
officeNumber,phoneModel,socialMediaPlatform,subName,
twitterHandle,imagestring,jobcategory)
VALUES('1', 'A Subramanian', 
'Senior Planner', '0000-00-00', '139', '971',
'2', 'Dubai', 'subu@mail.com', 'Reading, Watching TV, Online Chatting, Playing with my Children?', 'Ages Ago',
'Nothing special', '030 - 635 0039', 'Subs', '206',
'02 2331231', 'Blackberry', 'FB', 'test|test',
'Subu Kooliadan', '0139.jpg', '6');
我得到的错误是

 E/SQLiteLog(19242): (1) near "s": syntax error

我把你写的代码放在sqlfiddle上-


您的错误与此代码无关

这些特定的SQL语句是正确的。把有问题的贴出来。我猜字符串文字中有类似于未转义的
's
的内容。我不知道哪里有错误,但该查询在phpmysql中正常工作。我检查了是的,如果文本包含在“单引号”中,它们是。您发布的查询在SQLite中工作,并插入记录,可以正确地读回为
1 | Subramanian |高级规划师| 0000-00-00 | 139 | 971 | 2 |迪拜|subu@mail.com|阅读,看电视,网上聊天,和我的孩子一起玩?|几年前|没什么特别| 030-635 0039 | Subs | 206 | 02 2331231 | Blackberry | FB | test | test | Subu Kooliadan | 0139.jpg | 6
正如预期的那样。我已经分别检查了输入,但没有未替换的字符串