为了账号安全,请及时绑定邮箱和手机立即绑定

SQL语句问题

SQL语句问题

慕粉1472458902 2017-10-31 18:07:24
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'report_goods,report_transact WHERE report_goods.goods_id=report_transact.goods_i' at line 1报错说我的sql语句有问题,但是没检查到错误,,,,,请大神帮忙看看
查看完整描述

4 回答

?
第五若雪

TA贡献14条经验 获得超19个赞

SQL语句是什么

查看完整回答
反对 回复 2017-10-31
?
第五若雪

TA贡献14条经验 获得超19个赞

照片看不到

查看完整回答
反对 回复 2017-10-31
?
第五若雪

TA贡献14条经验 获得超19个赞

MySQL版本

查看完整回答
反对 回复 2017-10-31
  • 慕粉1472458902
    慕粉1472458902
    sql="select report_transact.goods_id goods_id,goods_name name,cost_price costPrice,sell_price sellPrice" + "FROM report_goods,report_transact" + " WHERE report_goods.goods_id=report_transact.goods_id " + "GROUP BY goods_name;";
  • 4 回答
  • 0 关注
  • 2464 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信