You have an error in your SQL syntax

原数据库语句如下:


  insert into order (oid, sid, mid, cid, `number`, price)
  values (#{oid}, #{sid}, #{mid}, #{cid}, #{number}, #{price})

要注意,order在SQL中是关键字,所以需将代码修改如下:


  insert into `order` (oid, sid, mid, cid, `number`, price)
  values (#{oid}, #{sid}, #{mid}, #{cid}, #{number}, #{price})

你可能感兴趣的:(后端,sql,oracle,数据库)