• 16-05-2008, 23:17:32
    #1
    Üyeliği durduruldu
    arkadaşlar ödevi bu gece yetiştirmem gerek, kodlar çalıştırınca hata veriyor nerede ynalış var acaba anlayan varsa yardımcı oalbilir mi soruyuda ekledim pdf olarak
    create or replace f_late_working(v_id. borrowings.id%type) return number is
    tim number;
    bor_date borrowings.borrow_date%type date;
    last_date borrowings.return_date%type date;
    begin
    select borrow_date,return_date 
    into 
    bor_tar,last_tar
    from borrowings
    where v_id=borrowings.id;
    while bor_date>last_date loop 
       if (to_char(bor_date,'d') in ('6','7') then 
    time:tim+0
    else time:tim+1; 
       end if;
    bor_tar:=bor_tar+1;
    end loop;
       if(tim>21)
    return tim-21;
    else if
    return 0;
    end if;
    create or replace status_function(stu_num students.no%type) function return number is
    status_of_students students.status%type;
    begin
    select status 
    into 
    st
    from students
    where students.no=stu_num;
    return st;
    end;
    create or replace trigger statustrigger
    before insert or update or delete on borrowings
    begin
    if(status_function(:new.student_no)<>1) then
    raise_applicaition_error(-20013,'error!);
    end if;
    end;
  • 18-05-2008, 11:31:09
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    verdiği hata nedir?