MYSQL知识点
wang_j1
这个作者很懒,什么都没留下…
展开
-
mysql中ON DUPLICATE KEY UPDATE 的用法
https://www.cnblogs.com/shine_cn/p/4076287.html转载 2020-09-05 16:57:11 · 110 阅读 · 0 评论 -
MYSQL中exists的用法
在MySQL中 EXISTS 和 IN 的用法有什么关系和区别呢?假定数据库中有两个表 分别为 表 a 和表 bcreate table a(a_id int,a_name varchar(20))create table b(b_id int,b_name varchar(20))那么select * from a where a_name in (select b_name from b)这条SQL语句的意义很明显是选取满足where条件.转载 2020-06-30 15:18:09 · 301 阅读 · 0 评论 -
count(字段)和count(*)函数的区别
count(字段):统计该字段中非空值的个数count(*):统计结果集的行数原创 2020-06-30 10:31:15 · 379 阅读 · 0 评论