随笔分类 -  SQL

sql如何筛选出重复数据
摘要:转: https://www.php.cn/mysql-tutorials-474077.html#:~:text=%20sql%E7%AD%9B%E9%80%89%E5%87%BA%E9%87%8D%E5%A4%8D%E6%95%B0%E6%8D%AE%E7%9A%84%E6%96%B9%E6%B 阅读全文

posted @ 2022-02-09 10:47 PerfectData 阅读(2796) 评论(0) 推荐(0) 编辑

MySQL基本操作
摘要:删除操作 1. 删除单个表中的数据 DELETE FROM <表名> [WHERE 子句] [ORDER BY 子句] [LIMIT 子句] 2. 删除表中的全部数据 DELETE FROM <表名> 修改操作 1. 修改字段默认值语法: alter table 表名 alter column 字段 阅读全文

posted @ 2021-02-12 16:27 PerfectData 阅读(32) 评论(0) 推荐(0) 编辑

MySQ将查询结果保存到表中
摘要:把查询的结果保存到新表中 insert into newtablename select * from tablename; 如果表不存在 creat table newtablename as select * from tablename; 阅读全文

posted @ 2021-02-12 09:33 PerfectData 阅读(84) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示