-2

在我的 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
4

1 回答 1

0

我把你写的确切代码放在 sqlfiddle 上——

http://sqlfiddle.com/#!7/fb892/2

您的错误与此代码无关

于 2013-10-12T17:49:37.007 回答