select  max(number) + 1
   from AAA
where A = A
   and  B = B

이 쿼리와

select  /* Index_desc (AAA pk) */
          number + 1
  from  AAA
where A = A
   and  B = B

단, A, B는 pk index임

이 쿼리의 차이.. 오늘 설명을 듣고나니 후덜덜 하더군;;;
index의 세계는 참으로 오묘하군...


===================================================================================

TAG , ,

trackback :: http://deathlife.cafe24.com/trackback/531

comment