今天出现了这个错误,发现通常情况下,所说的原因不是真正的原因。虽然提示说 缺少逗号,但是不能只检查逗号。
String sql = "insert into bookinfo "
+"(BOOKNAME,AUTHOR,ISBN,PRESS,PRESSTIME,PRICE,BOOKNO,NOWNO,LOANNO,BOOKTYPE,COLLECTION,BORROW,TYPE)"
+ " values('算法导论','潘金贵 等','9787111187776','机械工业出版社','TO_DATE('2006-09','yyyy-mm')',85,5,5,0,'TP',1,'可以',1)";
String sql = "insert into bookinfo "
+"(BOOKNAME,AUTHOR,ISBN,PRESS,PRESSTIME,PRICE,BOOKNO,NOWNO,LOANNO,BOOKTYPE,COLLECTION,BORROW,TYPE)"
+ " values('算法导论','潘金贵 等','9787111187776','机械工业出版社','TO_DATE('2006-09','yyyy-mm')',85,5,5,0,'TP',1,'可以',1)";