Mysql
f2634825250
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mysql命令
分组 select * 表名 group By 分组字段 排序 select * 表名 order by 排序字段 desc(降序)/asc(升序) 求平均 select avg(求平均字段) 表名 求和 select count(求和字段) 表名 多表查询 select * from 表1 inner join 表2 … ...原创 2020-03-26 15:48:05 · 139 阅读 · 0 评论 -
关于druid连接池
如果不需要测试类 在springboot中按照正常配置application即可 , maven也只需要druid的支持 需要测试类 则需要在pom文件中添加spngboot的jdbc支持, 否则datasource可能不能实现注入 ...原创 2020-03-12 21:28:14 · 164 阅读 · 0 评论 -
mysql的连接查询操作
用jdbc对数据库操作 public class MysqlQuery { public static void main(String[] args) { //java的mysql的连接接口 Connection connection = null; //储存mysql命令的对象 PreparedStatement parestatement = null; //数...原创 2019-10-24 09:14:34 · 169 阅读 · 0 评论 -
mysql的增删改
public class MysqlUpdate { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); Connection connection = null; PreparedStatement par...原创 2019-10-24 09:19:39 · 128 阅读 · 0 评论
分享