Skip to content
Advertisement

Tag: plsql

Calculate age from date of birth with formatting

I would like to calculate the age from the date of birth stored as a string using the format in the comments in the code. Here’s my code: The result I get is the following: I guess there’s something wrong with the year but I can’t figure it out! Answer The error is in this line: You should not call

Error while writing to array plsql how to fix? Extend doesn’t work also

so I am trying to write to an array in PL/SQL, and I always get the subscript outside of limit error. I’ve seen similar posts and implemented everything based on those answers, I can’t seem to find what I’m doing wrong. The line giving the error is “arr_quartosLivres(counter) := q.id;” I’ve tried to extend the array and it still doesn’t

not in in select query

I have similar query in my project. I have been told to find other way to remove not equal to, because index is not used if you do so. I have no other filter condition, can I do some work around to fool optimizer? Answer I have been told to find other way to remove not equal to, is generally

List of Record type matching issue Oracle

I want to check if a workspace is not available in all_workspace table then create new workspace. My requirement is if p_workspace is not matching the list of value of v_workspace then it should create new one. It gives me error after creation. If I run that workspace individually then its working. but when I am passing through block with

Advertisement