标题:小白一只,请各位大佬赐教~~
取消只看楼主
是心愿
Rank: 1
等 级:新手上路
帖 子:75
专家分:0
注 册:2016-6-22
结帖率:62.5%
已结贴  问题点数:20 回复次数:0 
小白一只,请各位大佬赐教~~
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

百度到的说是关键字问题,但是好像并不是,还请大佬赐教啊~~
搜索更多相关主题的帖子: String Order username address qq 
2017-07-09 10:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-479278-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.592921 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved