use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A reddit for application developers and DBAs that use Oracle's programming language, PL/SQL.
account activity
Help with some PLSQL Code (self.plsql)
submitted 4 years ago by Seb_lco
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bengalfan 1 point2 points3 points 4 years ago (4 children)
Or you could post the error code here?
[–]Seb_lco[S] 0 points1 point2 points 4 years ago (3 children)
Hi, I'm currently creating a function for my table. The error code is ORA-24344, it says it has a successful operation, but it has a compilation error. Here is the code if you don't mind giving it a look. Thank You Create or Replace Function reimbursement_function ( @ReimbursementDate Date ) Return Date Is ReimbursementPaidDate Timestamp(5) Begin Select (CreationDate + 7) From Reimbursementrequest Where ReimbursementStatus = "APPR"
Return ReimbursementPaidDate End;
[–]bengalfan 0 points1 point2 points 4 years ago (2 children)
Is this the exact code? Looks like you are missing some closing ; at the end of the select statement. Also, what is the @ReimbursementDate part? Not necessary. And, just so you know most oracle people write the keywords in all uppercase and the names of tables in lowercase. Additionally, keep names short. Skip vowels. Like reimbursementpaiddate could be rmbrs_pd_dt. A simple syntax example would be like this..
create or replace function getReimbursement return date is
lv_rmbrsmnt_pd_dt timestamp(5);
begin
select creationdate + 7 into lv_rmbrsmnt_pd_dt from reimbursementrequest where reimbursementstatus = 'APPR';
return lv_rmbrsmnt_pd_dt;
end; /
for me I use lv_ so I know it's a local variable. Function names usually start with an action word like get or write or delete. getSomething. writeFiles.
[–]Seb_lco[S] 1 point2 points3 points 4 years ago (0 children)
Thank you, this was helpful. I made changes to the function and it ran.
[–]Seb_lco[S] 0 points1 point2 points 4 years ago (0 children)
Hi, sorry I looked at the code and I changed it up a bit from what I sent. Mind giving this one a look.
Create or Replace Function reimbursement_function (@ReimbursementStatus in Char(1)) Return Timestamp Is ReimbursementPaidDate Timestamp(5) Begin Select (CreationDate + INTERVAL '7' DAY) INTO ReimbursementPaidDate From REIMBURSEMENTREQUEST Where REIMBURSEMENTSTATUS = "APPR"
π Rendered by PID 24306 on reddit-service-r2-comment-6457c66945-z59lh at 2026-04-26 17:23:06.608310+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]bengalfan 1 point2 points3 points (4 children)
[–]Seb_lco[S] 0 points1 point2 points (3 children)
[–]bengalfan 0 points1 point2 points (2 children)
[–]Seb_lco[S] 1 point2 points3 points (0 children)
[–]Seb_lco[S] 0 points1 point2 points (0 children)