查询重复记录的SQL语句

来源:互联网 发布:手机淘宝支付宝在哪里 编辑:程序博客网 时间:2024/05/20 10:23
select * from log as a ,(select message  from log  group by message having count(*)>1) bwhere a.message =b.message 
 
 
update sys_point t set t.location = (select s.location  from atmsqhd.sys_point s where t.pointcode = s.pointcode) where exists (select 1 from atmsqhd.sys_point s where s.pointcode = t.pointcode )
 
create or replace view view_operate asselect traceuuid, tracetype, tracetime, tracecontentid, userid, userip, isfaile, departmentid, username, departmentnamefrom sys_operationtraceunionselect traceuuid, tracetype, tracetime, tracecontentid, userid, userip, isfaile, departmentid, username, departmentnamefrom sys_operationtrace_his;
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
http://it.oyksoft.com/post/641/
0 0
原创粉丝点击