随笔分类 -  sql

摘要:MySQL基础查询语句练习题1、创建表 (1)创建student表 /* 公众号:AllTests软件测试 */CREATE TABLE student (id INT(10) NOT NULL UNIQUE PRIMARY KEY,name VARCHAR(20) NOT NULL,sex VARCHAR(4),birth  阅读全文
posted @ 2022-01-07 14:11 AllTests软件测试 阅读(159) 评论(0) 推荐(0)
摘要:SQL如何删除重复数据在使用数据库时,如何删除重复数据? 如图所示:用户表(user)数据 1、输入查询语句(查询name重复数据) select * from user where name in (select name from user group by name having count(name) > 1) 阅读全文
posted @ 2021-12-14 10:14 AllTests软件测试 阅读(1350) 评论(0) 推荐(0)