[[TableOfContents]] = SQL = == 테이블 리스트 & 컬럼명 조회 == Oracle {{{#!php ;모든 테이블 select * from tab ;특정 테이블의 컬럼 정보 select * from all_tab_columns where owner = '계정명' and table_name = '테이블' }}} == 일(date) 조건 == === 이번 달 === MySQL {{{#!php where regdate between adddate(curdate(), 1-dayofmonth(curdate())) and last_day(curdate()); }}} === 이번 주 === MySQL {{{#!php where regdate between adddate(curdate(), -weekday(curdate())) and adddate(curdate(), 6-weekday(curdate())); }}} === 오늘부터 특정 일까지 === MySQL {{{#!php where regdate >= @@@ and regdate <= now(); }}} === 오늘부터 며칠까지 == MySQL {{{#!php where regdate between subdate(now(), interval 1 DAY) and now(); }}}