![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
CXing4300
这个作者很懒,什么都没留下…
展开
-
ubuntu16.04离线安装mysql
安装步a.登录MySQL官网,选择需要的版本:https://dev.mysql.com/downloads/mysql/b.下载mysql-server_5.7.32-1ubuntu16.04_amd64.deb-bundle.tar (我本的系统是ubuntu16.04,项目要求安装mysql5.7)c.解压 $tar -xvf mysql-server_5.7.32-1ubuntu16.04_amd64.deb-bundle.tar得到以下文件d.下载mysq...原创 2020-10-28 18:31:26 · 743 阅读 · 0 评论 -
向数据库中插入一条记录后如何获得自动生成的列值?
(sql server 2005)1、自动生成的列值的数据类型为int型假如存在一张表,其主键为自增长的int型(起始值为1,增量值为1,如下所示:create table 职工表 (职工IDintprimary key identity ( 1, 1 ),职工姓名varchar ( 64 )not null,);原创 2012-11-15 10:30:55 · 2360 阅读 · 0 评论 -
MySql:You can't specify target table for update in FROM clause错误
MySql中You can't specify target table for update in FROM clause错误的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。 这个问题一般出现在update多张表的情况下,例如下面这个sql:update t_balance_of_account a,t_order_site_count b原创 2016-12-07 10:36:38 · 346 阅读 · 0 评论 -
mybatis批量插入
java:public void batchSave(List list)mybatis: id="batchSave" parameterType="java.util.List">insert into t_month_bills( id, bill_no, start_date, end_date )原创 2017-01-12 16:24:35 · 268 阅读 · 0 评论 -
mysql:使用concat()方法遇到的问题
拼接两列时遇到这样一个问题,concat(d.id,',',id.pre_door_ids) as doorIds,当id.pre_door_ids为Null时,整体结果为空,即使d.id不为空,所有以后使用的时候要注意,判断是否为空。原创 2017-09-13 14:35:14 · 1764 阅读 · 0 评论 -
Mapped Statements collection already contains value for com.xxxDao.findList
mybatis报错:Mapped Statements collection already contains value for com.xxxDao.findList原因:xxxDao.xml中存在id(findList)重复解决:修改其中一个id原创 2017-11-26 14:12:30 · 2363 阅读 · 0 评论 -
ubuntu16.04安装navicat for oracle
下载地址:https://www.navicat.com/en/download/navicat-for-oracle打开终端$ cd Downloads/$ tar -xvf navicat111_mysql_en.tar.gz$ cd navicat111_mysql_en$ ./start_navicat原创 2018-01-30 11:09:28 · 538 阅读 · 0 评论