티스토리 툴바



temp table을 만들고,
거기에 유효한 날짜를 집어넣고,
체크해야하는 날짜와 temp table의 유효한 날짜를 OUTER JOIN 하여 걸러낸다.

유효한 날짜가 들어있는 temp table 만들기

create table dummy_calender
as
select to_char(to_date('19000101','yyyymmdd') + rownum ,'yyyymmdd') chr_date,
       to_date('19000101','yyyymmdd') + rownum dt_date
  from dual
 connect by level <= 365000
;

select *
  from (
select *
  from dummy_calender
 order by 1 desc
)
where rownum <= 100
;

drop table dummy_calender purge ;


select to_char(to_date('19000101','yyyymmdd') + rownum ,'yyyymmdd') chr_date,
       to_date('19000101','yyyymmdd') + rownum dt_date
  from dual
 connect by level <= 365000
;

select to_char(to_date('19000101','yyyymmdd') + rownum ,'yyyymmdd') chr_date,
       to_date('19000101','yyyymmdd') + rownum dt_date
  from user_tables a,user_tables,user_tables,user_tables
 where rownum <= 10000;



강 수석님 짱! 아 붙어서 더 배우고 싶은데 ㅠ_ㅠ

저작자 표시 비영리 변경 금지
Posted by Jokelife

순번이 필요한 경우가 있는데,
Sequence 테이블을 쓸 것인가?
조회해서 최대값 가져와 쓸 것인가?

업무 특성에 따라 다르다.

순번이 필요할 때 고려해야하는 것은
동시성 (얼마나 많은 유저가 동시에 사용하는가?)
의미 (순번이 의미를 갖는 번호인가?)
...

간단히 되는게 없구만..

저작자 표시 비영리 변경 금지
Posted by Jokelife

datagrid에 all check를 할 수 있도록 하려면?
header renderer에 checkbox를 지정해줘야 한다.
item renderer도 checkbox,
header renderer도 checkbox.
item renderer랑 비슷하게 사용하면 된다.

난 언제쯤 정.확.히 알게 되는 걸까.
그러나 지금은 느낌과 결과로 일을 해야할 때.
저작자 표시 비영리 변경 금지

'2011 > flex' 카테고리의 다른 글

[Flex] datagrid all checkbox  (1) 2011/05/03
[Flex] text 입력 제한 (실수방지장치)  (0) 2011/04/29
[Flex] 날짜 연산  (0) 2011/04/29
Posted by Jokelife