추적 조건 SQL 문

추적 조건 대화상자를 사용하여 네트워크 추적을 제어하는 SQL 문을 정의할 수 있습니다. SQL 및 데이터 모형에 대한 지식이 요구됩니다.

문을 직접 입력하거나 생성을 클릭하여 스켈레톤 SQL 조회를 생성합니다. 그런 다음 도우미를 클릭하여 SQL 도우미를 엽니다.

비용 함수—숫자를 반환하는 SQL 문입니다. 비용이 적용되지 않은 경우 NULL을 반환할 수도 있습니다. 이것을 제로(0) 비용이라고 합니다.

정지 조건—조건이 적용되지 않은 경우 NULL을 반환하는 SQL 문입니다. 이 경우 피쳐는 정지 피쳐가 아닙니다. 조건에서 어떤 숫자를 반환할 경우 이 피쳐는 정지 피쳐입니다.

SQL 스켈레톤 조회

설명

예제: 정지 조건을 사용한 유틸리티 추적

case /* Point */ when &f_class_id=33 then ( select case /* Armature */ when f_class_id_attr=3 then ( select 1 from GA_ARMATURE where fid=ga_point.fid_attr and <CONDITION>) else null end from GA_POINT ga_point where fid=&fid) else null end

예제: 정지 조건을 사용한 유틸리티 이외의 추적

case /* <feature class> */ when &f_class_id=<id> then ( select 1 from <feature class> where fid=&fid and <CONDITION>) else null end

<CONDITION>

정지 조건에 사용되는 자리 표시자입니다. 추적을 정지하려면 이 값을 해당 정보가 포함된 속성으로 대치합니다. 예제: 속성 OPEN = YES는 회전자 열기를 나타냅니다.

case /* Point */ when &f_class_id=33 then ( select case /* Armature */ when f_class_id_attr=3 then ( select 1 from GA_ARMATURE where fid=ga_point.fid_attr and not OPEN = 'yes') else null end from GA_POINT ga_point where fid=&fid) else null end

예제: 비용 함수를 사용한 유틸리티 추적

case /* Point */ when &f_class_id=33 then ( select case /* Armature */ when f_class_id_attr=3 then ( select <VALUE> from GA_ARMATURE where fid=ga_point.fid_attr) else null end from GA_POINT ga_point where fid=&fid) else null end

예제: 정지 조건을 사용한 유틸리티 이외의 추적

case /* <feature class> */ when &f_class_id=137 then nvl(( select <VALUE> from <feature class> where fid=&fid ),0) else 0 end

<VALUE>

비용 함수에 사용되는 자리 표시자입니다. 이 값을 추적 시 최소화할 비용 속성으로 대치합니다. 예제:

PIPE_LENTH

선택 1

조건이 적용된 경우 NULL이 아닌 반환 값을 얻기 위한 정지 조건에 대한 도우미 선택입니다.