Mysql
ABLE.ZHANG
这个作者很懒,什么都没留下…
展开
-
Mysql replace into insert ignore 用法
insert ignore: 根据主键或者唯一索引插入数据,如果当前数据存在,则不会报错,返回结果0,如果插入成功则返回为1,其实与Update语句意思差不多,不过一个是更新,一个是插入.注意 一定要有唯一索引或者主键ID,如果没有,则使用insert ignore毫无意义。有一张如下:CREATE TABLE `able_test` ( `id` int(8) NOT NULL ...原创 2020-04-15 09:30:25 · 529 阅读 · 0 评论 -
Liunx CentOS7.2 安装mysql5.6.44(懒人方式)
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm #下载rpm文件yum repolist enabled | grep "mysql.*-community.*"yum -y install mysql-community-serversystemctl enable mysqld #...原创 2019-06-22 23:56:31 · 728 阅读 · 0 评论