已采纳回答 / 幸福是可积的
查询所得的结果集即是价钱总和了,直接获取就行
如果要按照你写的,那么就需要把查询语句改为
select s.Mprice,s.Jprice,x.xscout
from SPinfo as s,XSjilu as x
where s.iid = x.iid;
2017-03-10
mysql-connector-java-5.1.41及数据库配置
链接:http://pan.baidu.com/s/1nv6XlDB 密码:mngm
链接:http://pan.baidu.com/s/1nv6XlDB 密码:mngm
2017-03-10
提示WARN: Establishing SSL connection without server的错误,修改URL常量
private static final String URL = "jdbc:mysql://127.0.0.1:3306/imooc?characterEncoding =utf8&useSSL=true";
private static final String URL = "jdbc:mysql://127.0.0.1:3306/imooc?characterEncoding =utf8&useSSL=true";
2017-03-10
mysql-connecter-java-xxx.zip 解压,将mysql-connecter-java-xxx-bin.jar 右键->Build path
2017-03-10