工作中使用到的SQL

在同一个表中找出更新时间和创建时间相同的数据

select * from table t where (select count(*) from table where t.create_at=create and t.update_at = update_at) >1;
posted @ 2022-02-18 11:01  小刘的早餐店  阅读(19)  评论(0编辑  收藏  举报