2009. 7. 1. 21:41
select count(*) from flows;
select count( distinct SRCADDR) from flows;
delect from flows;
drop netflow;
drop table flows;
SELECT column_name(s) 
FROM table_name 
ORDER BY column_name(s) ASC|DESC
select * from table limit 5    처음부터 5개까지
select * from table limit 5,5    5개에서 10개 사이
select * from table limit 5,-1    5개에서 마지막까지
select * from tableA order by reg_dt desc limit 10;  내림차순으로 정렬해서 최상위 10개만 가져오기

Posted by 두장