小白一只,请各位大佬赐教~~
try { dbc=new DBConnect();
String sql = "INSERT INTO b_order(username,product,buynum,address,phonenum) VALUES(?,?,?,?,?)";
Order order=new Order();
String name=username;
String bproduct=product;
int bnum=buynum;
String addr=address;
int bphone=phonenum;
报错
You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near 'order (username,type,buynum,address,phonenum) VALUES('qq','qq',1,'qq',1)' at line 1
百度到的说是关键字问题,但是好像并不是,还请大佬赐教啊~~