什么';这个sql语句中有什么错误?

什么';这个sql语句中有什么错误?,sql,Sql,这个sql语句中有什么错误 insert into employee values(a-101,suman,20-convent-road,03/02/76,05/05/03,20000); insert into employee values(a-101,suman,20_convent_road,03/02/76,05/05/03,20000); 你需要: 字符串周围的单引号 标准格式的日期 插入的列列表 大概是这样的: insert into employee(col1,

这个sql语句中有什么错误

insert into employee values(a-101,suman,20-convent-road,03/02/76,05/05/03,20000);  

insert into employee values(a-101,suman,20_convent_road,03/02/76,05/05/03,20000);  
你需要:

  • 字符串周围的单引号
  • 标准格式的日期
  • 插入的列列表
大概是这样的:

insert into employee(col1, col2, . . . )  -- whatever the columns are
    values('a-101', 'suman', '20-convent-road',
           '1976-03-02', '2003-05-05', 20000
          ); 

在员工价值观中插入('a-101'、'suman'、'20-convent-road'、'03/02/76'、'05/05/03',20000)


尝试将字符串和日期值保存在单个代码中。这可能会帮助您显示错误的地址吗?
03/02/76
是一个算术表达式,
20_uu修道院路
是一个无效名称;使用引号:
'20-convent-road'
错误消息-此处不允许列,无效字符,除非
a-101
是数字操作且
suman
是数字操作variable@JuanCarlosOropeza . . . 这在支持此类常量的数据库中是可能的。并非所有人都这样做。(当然,这同样适用于
a
convent
road
)。因此,OP可以将
03/02/76
作为一个算术表达式。但我对此表示怀疑。