49: cursor cur_route_exists is
50: select route_id from ff_routes
51: where route_name = p_route_name;
52:
53: cursor cur_ff_routes_s is
54: select ff_routes_s.nextval
55: from dual;
56:
57: l_route_id ff_routes.route_id%TYPE;
50: select route_id from ff_routes
51: where route_name = p_route_name;
52:
53: cursor cur_ff_routes_s is
54: select ff_routes_s.nextval
55: from dual;
56:
57: l_route_id ff_routes.route_id%TYPE;
58:
66: if cur_route_exists%notfound then
67:
68: close cur_route_exists;
69:
70: open cur_ff_routes_s;
71: fetch cur_ff_routes_s
72: into l_route_id;
73: close cur_ff_routes_s;
74:
67:
68: close cur_route_exists;
69:
70: open cur_ff_routes_s;
71: fetch cur_ff_routes_s
72: into l_route_id;
73: close cur_ff_routes_s;
74:
75: insert into ff_routes
69:
70: open cur_ff_routes_s;
71: fetch cur_ff_routes_s
72: into l_route_id;
73: close cur_ff_routes_s;
74:
75: insert into ff_routes
76: (
77: route_id,