인터널테이블에는 standard table 과 sorted table 그리고 harshed table이 있는데요..
이 세테이블에 줄수있는 키값이 각각 다른것을 알수있습니다.
여기서 예문을 들어서 itab LIKE SORTED TABLE OF wa
WITH NON-UNIQUE KEY cityfrom cityto. 에서 non-unique key 를 줄때와 unique key를 줄때의 각테이블 종류에 따른 차이점을 자세히 알고 싶습니다.
그리고 with non-unique(unique) default key에서 default는 어떤 의미로 쓰이는지도 좀 알려주세요.
일단 아래 정리한 표 참고하세요...
---------------------------------------------------------------------------
Standard table | Sorted table | Hashed table
---------------------------------------------------------------------------
Index access Yes | Yes | No
Key access Yes | Yes | Yes
Key values Non-unique | Unique or Non-unique | Unique
Preferred access Primarily index | Primarily key | Key only
---------------------------------------------------------------------------