[복사되는블로그 꼬마갱이] 동적쿼리를 이용한 Count 함수 '(외따옴표활용)
CREATE OR REPLACE FUNCTION count_rows_where ( table_name IN VARCHAR2, v_field1 IN VARCHAR2 DEFAULT NULL, v_value1 IN VARCHAR2 DEFAULT NULL, v_field2 IN VARCHAR2 DEFAULT NULL, v_value2 IN VARCHAR2 DEFAULT NULL, v_field3 IN VARCHAR2 DEFAULT NULL, v_value3 IN VARCHAR2 DEFAULT NULL ) RETURN NUMBER AUTHID CURRENT_USER IS num_rows NUMBER; stmt VARCHAR2 (2000); BEGIN IF v_field1 IS N..