بتاريخ: 23 أغسطس 200718 سنة comment_108154 السلام عليكم شباب,بغيت مساعدة منكم:My issue with the insert query from the Servlet to the ODBC, in the same project I have another insert steatment that is working fine but I don't know what's wrong with this.I did alot of debuging but I couldn't find the problem.All the eight columns are "text" data type but still I'm having the below error when I'm executing the sql String.java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.the insert form:String sql ="INSERT INTO order (username, submitDate, deliverDate, PackRedRose, Coco,RedRose, WhiteRose, Address) values ('"+username+"', '"+dateE+"', '"+DeliverDate+"', '"+PackRedRose+"', '"+choco+"', '"+RedRose+"', '"+PackWhiteRoses+"', '"+DAddress+"')"; stmt.executeUpdate(sql); تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.