today:
170
yesterday:
170
Total:
999,476
DECLARE
  v_test_nbr NUMBER;
  v_check_exists NUMBER;
BEGIN
  BEGIN
    v_test_nbr := to_number(:P6_TEXT_FIELD);
  EXCEPTION
  WHEN OTHERS THEN
    -- or catch 1722 (invalid number) and 6502 (char to number conversion error)
    v_test_nbr := NULL;
  END;

  IF v_test_nbr IS NOT NULL
  THEN
  -- if v_test_nbr is not null then the field should be numerically valid
  -- if it isn't then this code would be skipped and this validation
  -- will not throw an error.
  -- However, the previous validation will still fail when text is entered, 
  -- so this shouldn't matter.
    BEGIN
      SELECT 1
      INTO v_check_exists
      FROM my_table
      WHERE column_name = :P6_TEXT_FIELD;
    EXCEPTION 
    WHEN no_data_found THEN
      v_check_exists := 0;
    END;

    IF v_check_exists = 1 
    THEN
      RETURN 'A record with this key already exists';      
    END IF;
  END IF;

  RETURN NULL;
END;
No. Subject Author Date Views
126 YEAR EXPRESSIONS admin 2023.05.25 34
125 TEST admin 2023.05.03 36
124 INNER JOIN admin 2023.05.19 37
123 Monthly SUM admin 2023.05.22 37
122 ORACLE COLLECTION admin 2023.05.08 38
121 DATE -> DAY CONVERT SQL admin 2023.05.25 38
120 GRAPH (BAR) SQL SAMPLE admin 2023.05.25 39
119 TEST admin 2023.04.28 40
118 GitHub.com/Oracle/APEX. admin 2023.05.04 40
117 Global pages admin 2023.05.09 40
116 FINAL TEST admin 2023.05.08 44
115 LOOP TABLE UPDATE admin 2023.05.19 50
114 GP 영수증 (3) -01/04/2023 admin 2023.01.04 53
113 WHDR email address admin 2023.04.13 55
112 CHANGE TABLE NAME admin 2023.05.31 58
111 GP 영수증 본문 admin 2022.11.07 61
110 Building Mobile Applications with Oracle Application Express 5.0 admin 2017.11.25 63
109 GP - 영수증 (2) admin 2022.11.07 63
108 ipconfig admin 2023.06.03 67
107 Manufacturing resource planning (MRP II) admin 2018.02.14 78