已采纳回答 / 不笨的jamin
第一,根据前端,你要设计你的数据库和表。第二,做jdbc 和数据库的connect。第三写 sql 语句,使用java执行的函数,得到结果集合,传给前端显示
2017-08-14
最赞回答 / FIJIiiii
出现了Exception in thread "main" java.lang.Error: Unresolved compilation problems: url cannot be resolved to a variable user cannot be resolved to a variable password cannot be resolved to a variable
2017-08-14
最新回答 / 慕婉清0689395
你看的这个是通过名字进行查询,你想通过ID进行查询只需将sb.append("where user_name = ?")改成sb.append("where id=?")就行了。
2017-08-11
已采纳回答 / 690017359
// 拼写sql语句 String sql = "" + " selete * from imooc_goddess " + " set user_name=?,sex=?,age=?,birthday=?,email=?,mobile=?, " + " update_user=?,update_date=current_date(),isdel=? " + " where id=? ";?在第一行要有,后面要给这些属性赋值,第一个属性赋值为任意类型的字符串,所以...
2017-08-11
已采纳回答 / 我也很绝望_但只能继续学啊
哎,它提示了“找不到imooc”这张表,"jdbc:mysql://localhost:3306/imooc"这句话中,最后的“imooc”是数据库,不是表格,你把ResultSet resultSet = statement.executeQuery("select user_name ,age from imooc");中的imooc改成表名就行了,要学会自己看错误提示,我也是新手,一起学习吧
2017-08-10