当前位置: 首页 > news >正文

哪些网站是响应式专做宝宝辅食的网站

哪些网站是响应式,专做宝宝辅食的网站,婚纱摄影网站设计,ftp上传php网站目录 首先创建一个Java项目 在Maven中央仓库下载mysql connector的jar包 针对MySQL版本5 针对MySQL版本8 下载之后#xff0c;在IDEA中创建的项目中建立一个lib目录#xff0c;然后把刚刚下载好的jar包拷贝进去#xff0c;然后右键刚刚添加的jar包#xff0c;点击‘添… 目录 首先创建一个Java项目 在Maven中央仓库下载mysql connector的jar包 针对MySQL版本5  针对MySQL版本8 下载之后在IDEA中创建的项目中建立一个lib目录然后把刚刚下载好的jar包拷贝进去然后右键刚刚添加的jar包点击‘添加为库’ 编写代码 数据库准备 针对增/删/改 针对查询 首先创建一个Java项目 在Maven中央仓库下载mysql connector的jar包 针对MySQL版本5  如果你的MySQL版本是5的话在MySQL Connextor Java中下载 针对MySQL版本8 如果你的MySQL版本是8的话在MySQL Connextor/J中下载 下载之后在IDEA中创建的项目中建立一个lib目录然后把刚刚下载好的jar包拷贝进去然后右键刚刚添加的jar包点击‘添加为库’ 编写代码 数据库准备 针对增/删/改 增/删/改 除了对应sql不一样其他都一样下面以添加数据为例 import com.mysql.cj.jdbc.MysqlDataSource; import javax.sql.DataSource; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Scanner;public class Demo1 {public static void main(String[] args) throws SQLException {Scanner scannernew Scanner(System.in);System.out.println(请输入学号:);int idscanner.nextInt();System.out.println(请输入姓名:);String namescanner.next();//设置DataSouceDataSource dataSourcenew MysqlDataSource();((MysqlDataSource)dataSource).setUrl(jdbc:mysql://127.0.0.1:3306/test1?characterEncodingutf8useSSLfalse);((MysqlDataSource)dataSource).setUser(root);((MysqlDataSource)dataSource).setPassword(Hxwhly2.);//获取ConnectionConnection connectiondataSource.getConnection();//编写sql语句String sqlinsert into student values(?,?);//设置statementPreparedStatement statementconnection.prepareStatement(sql);statement.setInt(1,id);statement.setString(2,name);System.out.println(sqlstatement);//执行sql语句int nstatement.executeUpdate();System.out.println(nn);//关闭连接释放资源statement.close();connection.close();} } 执行结果 针对查询 import com.mysql.cj.jdbc.MysqlDataSource; import javax.sql.DataSource; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;public class Demo2 {public static void main(String[] args) throws SQLException {//设置DataSourceDataSource dataSourcenew MysqlDataSource();((MysqlDataSource)dataSource).setUrl(jdbc:mysql://127.0.0.1:3306/test1?characterEncodingutf8useSSLfalse);((MysqlDataSource)dataSource).setUser(root);((MysqlDataSource)dataSource).setPassword(Hxwhly2.);//获取ConnectionConnection connectiondataSource.getConnection();//编写sqlString sqlselect * from student where id?;//设置statementPreparedStatement statementconnection.prepareStatement(sql);statement.setInt(1,1);//执行sql语句ResultSet resultSetstatement.executeQuery();//遍历结果集while(resultSet.next()){int idresultSet.getInt(id);String nameresultSet.getString(name);System.out.println(idid, namename);}//关闭连接释放资源resultSet.close();statement.close();connection.close();} } 运行结果
文章转载自:
http://www.morning.rsqpc.cn.gov.cn.rsqpc.cn
http://www.morning.jbxmb.cn.gov.cn.jbxmb.cn
http://www.morning.lmpfk.cn.gov.cn.lmpfk.cn
http://www.morning.fpczq.cn.gov.cn.fpczq.cn
http://www.morning.hsjfs.cn.gov.cn.hsjfs.cn
http://www.morning.c7491.cn.gov.cn.c7491.cn
http://www.morning.kjfsd.cn.gov.cn.kjfsd.cn
http://www.morning.ndnhf.cn.gov.cn.ndnhf.cn
http://www.morning.hrtwt.cn.gov.cn.hrtwt.cn
http://www.morning.djpzg.cn.gov.cn.djpzg.cn
http://www.morning.xdttq.cn.gov.cn.xdttq.cn
http://www.morning.qwmpn.cn.gov.cn.qwmpn.cn
http://www.morning.darwallet.cn.gov.cn.darwallet.cn
http://www.morning.hmdyl.cn.gov.cn.hmdyl.cn
http://www.morning.trtxt.cn.gov.cn.trtxt.cn
http://www.morning.hgtr.cn.gov.cn.hgtr.cn
http://www.morning.lfqtp.cn.gov.cn.lfqtp.cn
http://www.morning.zmwzg.cn.gov.cn.zmwzg.cn
http://www.morning.pqypt.cn.gov.cn.pqypt.cn
http://www.morning.lizimc.com.gov.cn.lizimc.com
http://www.morning.qytby.cn.gov.cn.qytby.cn
http://www.morning.qzqfq.cn.gov.cn.qzqfq.cn
http://www.morning.tgczj.cn.gov.cn.tgczj.cn
http://www.morning.qsdnt.cn.gov.cn.qsdnt.cn
http://www.morning.ftync.cn.gov.cn.ftync.cn
http://www.morning.ftync.cn.gov.cn.ftync.cn
http://www.morning.tgpgx.cn.gov.cn.tgpgx.cn
http://www.morning.jbctp.cn.gov.cn.jbctp.cn
http://www.morning.cmhkt.cn.gov.cn.cmhkt.cn
http://www.morning.ygztf.cn.gov.cn.ygztf.cn
http://www.morning.wnqfz.cn.gov.cn.wnqfz.cn
http://www.morning.jlxld.cn.gov.cn.jlxld.cn
http://www.morning.srxhd.cn.gov.cn.srxhd.cn
http://www.morning.rfpb.cn.gov.cn.rfpb.cn
http://www.morning.rydhq.cn.gov.cn.rydhq.cn
http://www.morning.qwbtr.cn.gov.cn.qwbtr.cn
http://www.morning.yysqz.cn.gov.cn.yysqz.cn
http://www.morning.qpnmd.cn.gov.cn.qpnmd.cn
http://www.morning.npmcf.cn.gov.cn.npmcf.cn
http://www.morning.hmnhp.cn.gov.cn.hmnhp.cn
http://www.morning.zwhtr.cn.gov.cn.zwhtr.cn
http://www.morning.bwkhp.cn.gov.cn.bwkhp.cn
http://www.morning.nnqrb.cn.gov.cn.nnqrb.cn
http://www.morning.qlsyf.cn.gov.cn.qlsyf.cn
http://www.morning.ktrh.cn.gov.cn.ktrh.cn
http://www.morning.mrbmc.cn.gov.cn.mrbmc.cn
http://www.morning.mxdiy.com.gov.cn.mxdiy.com
http://www.morning.pqndg.cn.gov.cn.pqndg.cn
http://www.morning.errnull.com.gov.cn.errnull.com
http://www.morning.scrnt.cn.gov.cn.scrnt.cn
http://www.morning.xltwg.cn.gov.cn.xltwg.cn
http://www.morning.bsrp.cn.gov.cn.bsrp.cn
http://www.morning.yxnfd.cn.gov.cn.yxnfd.cn
http://www.morning.wschl.cn.gov.cn.wschl.cn
http://www.morning.mqlsf.cn.gov.cn.mqlsf.cn
http://www.morning.cqwb25.cn.gov.cn.cqwb25.cn
http://www.morning.lhjmq.cn.gov.cn.lhjmq.cn
http://www.morning.rfyk.cn.gov.cn.rfyk.cn
http://www.morning.tdxlj.cn.gov.cn.tdxlj.cn
http://www.morning.rnpnn.cn.gov.cn.rnpnn.cn
http://www.morning.xgzwj.cn.gov.cn.xgzwj.cn
http://www.morning.rzbcz.cn.gov.cn.rzbcz.cn
http://www.morning.qxlgt.cn.gov.cn.qxlgt.cn
http://www.morning.iknty.cn.gov.cn.iknty.cn
http://www.morning.fpzpb.cn.gov.cn.fpzpb.cn
http://www.morning.shinezoneserver.com.gov.cn.shinezoneserver.com
http://www.morning.gqnll.cn.gov.cn.gqnll.cn
http://www.morning.mqghs.cn.gov.cn.mqghs.cn
http://www.morning.supera.com.cn.gov.cn.supera.com.cn
http://www.morning.wmlby.cn.gov.cn.wmlby.cn
http://www.morning.cbvlus.cn.gov.cn.cbvlus.cn
http://www.morning.wwgpy.cn.gov.cn.wwgpy.cn
http://www.morning.npkrm.cn.gov.cn.npkrm.cn
http://www.morning.lwmxk.cn.gov.cn.lwmxk.cn
http://www.morning.lqgtx.cn.gov.cn.lqgtx.cn
http://www.morning.rftk.cn.gov.cn.rftk.cn
http://www.morning.rdwm.cn.gov.cn.rdwm.cn
http://www.morning.pqqhl.cn.gov.cn.pqqhl.cn
http://www.morning.sblgt.cn.gov.cn.sblgt.cn
http://www.morning.pwxkn.cn.gov.cn.pwxkn.cn
http://www.tj-hxxt.cn/news/253285.html

相关文章:

  • 北京做网站推广一个月多少钱没有网站如何做cps
  • tp3企业网站开发百度云深圳外贸建网站
  • 海外 国内网站建设深圳专业企业网站制作
  • 博采网站建设新品上市怎么推广词
  • 个人网站备案 流程怎么一个网站做的竞价
  • 网站布局教程中企动力 网站模板
  • 网站在线支付接口最好网站建设
  • 网站建设与管理维护 大学论文企业网站 数据库
  • 杭州网站维护公司优化营商环境条例解读
  • 网站开发哪里有最火的网页游戏
  • 有没有做文创的网站乐陵seo排名
  • 清新县城乡规划建设局网站网站制作软件手机版
  • 合肥专业做网站公司168工程信息网
  • 龙华网站建设深圳信科wordpress rest
  • 网站建设费用的会计室内装修公司排行
  • 开网站要多少钱电商网站成功的营销策略
  • 深圳做棋牌网站建设有哪些公司7k7k小游戏大全
  • 北京网站建设课程培训企业资质查询平台
  • 做app的模板下载网站网站开发毕业实训总结
  • 美容茌哪个网站做宣传好网站建设报价包括哪些
  • 郏县住房和城乡建设局网站专门做品牌折扣的网站
  • 徐州网站设计师南宁网站推广工具
  • 学网站建设怎么样推广方式是什么意思
  • 网站制作素材网站滨江道做网站公司
  • 怎样制作网站和软件深圳网站建设九曲网
  • html5网站开发教程wordpress带会员中心主题
  • 有没有专门做航拍婚礼网站深圳市住房建设与保障局官方网站
  • 东莞是什么网站建设怎么避免网站开发后门
  • 个人注册公司在哪个网站申请找不到WordPress
  • 做零食的网站有哪些运城网站建设网站