방법1.
create table emp2 as select distinct * from emp;
drop table emp;
rename emp2 to emp;
방법2. //자료가 많을땐 시간이 좀걸리죠.
delete from emp a
where rowid > (select min(rowid) from emp b
where b.empno = a.empno);
방법3 //가장 좋은 방법이다.
delete from emp a, emp b
where a.rowid <> b.rowid
and a.empno = b.empno;
create table emp2 as select distinct * from emp;
drop table emp;
rename emp2 to emp;
방법2. //자료가 많을땐 시간이 좀걸리죠.
delete from emp a
where rowid > (select min(rowid) from emp b
where b.empno = a.empno);
방법3 //가장 좋은 방법이다.
delete from emp a, emp b
where a.rowid <> b.rowid
and a.empno = b.empno;
![]() | ![]() ![]() | 12-27 | 2187 | |
![]() | ![]() ![]() | 12-11 | 1580 | |
53 | ![]() ![]() | 03-15 | 1362 | |
52 | ![]() ![]() | 01-31 | 1480 | |
51 | ![]() ![]() | 01-31 | 1574 | |
50 | ![]() ![]() | 01-31 | 1180 | |
49 | ![]() ![]() | 01-19 | 1481 | |
48 | ![]() ![]() | 01-11 | 1307 | |
47 | ![]() ![]() | 01-03 | 1824 | |
46 | ![]() ![]() | 12-27 | 2187 | |
45 | ![]() ![]() | 12-19 | 1579 | |
44 | ![]() ![]() | 12-14 | 1557 | |
43 | ![]() ![]() | 12-11 | 1580 | |
42 | ![]() ![]() | 12-09 | 1266 | |
41 | ![]() ![]() | 12-01 | 1484 | |
40 | ![]() ![]() | 12-01 | 1620 | |
39 | ![]() ![]() | 12-01 | 1130 |
댓글 없음:
댓글 쓰기