jdbc连接MySQL(配置文件)
2017-07-05 本文已影响0人
极客Follow
连接配置文件:
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:8866/first?useUnicode=true&characterEncoding=utf-8
username=账户名(默认root)
pwd=密码,(自己的设定)
jdbc连接配置文件 图1:
剩下的使用方式,与oracle,基本相同,只不过在sql语句上,略微不同,
分页查询与名称查询的语句 图2: