Studip question....which requires a simple answer......

If I have a variable defines as:
l_count NUMBER(6,0)
What is the maximum precision (or number) allowed before the 06502 - Number precision too large error is thrown??
thanks

It's annoying.
Because
(1) the way Oracle document this.
(2) inconsistency in how this works
Oracle say:
NUMBER[(precision,scale)]
Where:
"precision is the total number of digits"
"scale, which is the number of digits to the right of the decimal point."
Which of course is not the correct definition of precision and scale.
However to answer the question:
NUMBER(precision) -- same as NUMBER(precision,0)
NUMBER(6,0)
SQ> declare
2 v_number NUMBER(6,0);
3 begin
4 v_number := 100000;
5* end;
15:54:06 SQL>/
PL/SQL procedure successfully completed.
SQL>declare
2 v_number NUMBER(6,0);
3 begin
4 v_number := 1000001;
5 end;
6 /
declare
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: number precision too large
ORA-06512: at line 4
However, you not that although "scale" is set to "0" then you do not have equivalent scale overflow:
1 declare
2 v_number NUMBER(6,0);
3 begin
4 v_number := 1.1232323232423423423;
5 dbms_output.put_line(to_char(v_number));
6* end;
15:55:13 SQL>/
1
PL/SQL procedure successfully completed.
added:
You know I say "this is not correct definition", by which I mean "not the accepted/mathematical" definition.
Of course as in many other area, Oracle are free to define these things how they like.
I just mean that if you have some understanding alread of this concepts, then it can be confusing/misleading that Oracle chose not to observe accepted standards on these definition.
Now I await ensuing flame war, and possible rebuttal using wooden furnitures and the like.
Message was edited by:
The Flying Spontinalli

Similar Messages

  • My aaple id asking security question while I am try to purchase on App Store  they asking a security questions which I unable to answer because I forgotten answer please help

    My aaple id asking security question while I am try to purchase on App Store  they asking a security questions which I unable to answer because I forgotten answer please help

    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

  • I have problem with the security question which i forgot the answer how can i change it as i already have apple id and password

    I have problem with the security question which i forgot the answer how can i change it as i already have apple id and password

    You may reset the password on your account by opening https://iforgot.apple.com/ in Safari and entering your Apple ID (your email address, which the moderators should have removed earlier).
    You won't be able to set the password to your email address, or a recently-used password (if I remember correctly).
    Once you change your password, you should update your password on your iOS device in Settings > iTunes & App Store, then tapping the "Apple ID: <username>" cell at the top to re-enter your password.  (Your iOS device may prompt you for the new password before getting to Settings as well.)
    Hope that helps.  If you have a different issue, please post a follow-up message.

  • HT4972 hi one of the main important questions which this site didnt answer to it is: whats the latest version of ios which any device work with it for example i have a ipad 1st and i dont know whats is the latest version of ios for this device thanks

    hi one of the main important questions which this site didnt answer to it is: whats the latest version of ios which any device work with it. for example i have a ipad 1st and i dont know whats is the latest version of ios for this device

    Google "iOS versions" and read the first match (Wikipedia)........

  • Hi my daughter has brought a itunes voucher and now it is asking for security question which she dont know answers to please help

    can anyone help as she dont know security questions and will be blocked thanks

    First try:
    Can I change the answers to the security questions for my Apple ID?
    Yes. You can change the answers to the security questions provided when you originally signed up for your Apple ID. Go to My Apple ID and click Manage your Apple ID. Sign in with your Apple ID name and password, go to the section Password and Security and click Reset your security information.
    next
    Rescue email address and how to reset Apple ID security questions
    Last contact iTunes by:
    https://expresslane.apple.com/Issues.action
    Click on "Account Management" and then on "Forgotten Security Questions". That will take you to a page where you can talk to iTunes Support right away, or you can schedule a call to talk to them. They should be able to get you squared away so that you can log on to the old Apple ID.

  • Stupid Question. Needs A Simple answer?

    how do i get my iphone to sync automatically when i plug it in? someone please help me? 

    how do i get my iphone to sync automatically when i plug it in?
    IMO, you're going to regret that one day.  Unless you are an advanced user, I would leave it off and initiate syncing manually.

  • HT5312 i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.   thank you. Truong Thanh Cong

    i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.
    thank you.
    Truong Thanh Cong

    I had this same problem.
    Go to http://expresslane.apple.com.
    hit iTunes
    hit itunes store
    hit account management
    hit forgotten AppleID security questions.
    hit continue and enter your phone number
    apple support will call you and guide you through the reset process

  • HT5312 i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.   thank you

    i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.
    thank you.
    Mosab azdein

    Hi Mva,
    If you set up a Rescue email address:
    Go into Manage Your AppleID, https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/, select Password and Security, and click the first option (see below), and you will be able to proceed from there..... (I HOPE the first button is showing for you!)
    Reset your password
    You can change or reset the password for your Apple ID account by providing some information.
    Select your authentication method.
    Email authentication: To access your information, we will send an email to the rescue email address on file for you.
      Answer security questions: To access your information, you will need to answer the security question(s) provided when you originally created your Apple ID.
    If you did not set up a Rescue email address:
    1. Go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
       Then select 'iTunes Store', and on the next screen select 'Account Management'
       Next choose 'Apple ID Account Security' and fill in that you'd like your security   
       questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)
    2. Once your questions have been reset, and you set up new ones, also set up a RESCUE EMAIL ADDRESS, so if you forget them again, you won't have to go through all of this.....
    Hope this helps!
    Cheers,
    GB

  • HT5312 i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.  

    i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.

    Hi Oms3ad,
    If you set up a Rescue email address:
    Go into Manage Your AppleID, https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/, select Password and Security, and click the first option (see below), and you will be able to proceed from there..... (I HOPE the first button is showing for you!)
    Reset your password
    You can change or reset the password for your Apple ID account by providing some information.
    Select your authentication method.
    Email authentication: To access your information, we will send an email to the rescue email address on file for you.
      Answer security questions: To access your information, you will need to answer the security question(s) provided when you originally created your Apple ID.
    If you did not set up a Rescue email address:
    1. Go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
       Then select 'iTunes Store', and on the next screen select 'Account Management'
       Next choose 'Forgotten Security Questions' and fill in that you'd like your security   
       questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)
    2. Once your questions have been reset, and you set up new ones, also set up a RESCUE EMAIL ADDRESS, so if you forget them again, you won't have to go through all of this.....

  • HT1918 i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.

    i forgot the answer to my security question which was required by apple to purches an app.. i would appricate any advice on what i should do.

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • I've read similar questions and answers, but I am still terrified to upgrade from leopard to snow leopard. The only reason I want to is because I received an iPad which requires an updated system. I have an external hard drive. I have the disks to upgrade

    I've read similar questions and have studied the answers, but I am still terrified to upgrade from leopard to snow leopard on my macbook pro. The only reason for doing it is in order to sync my macbook pro with my iPad. I do have an external drive which automatically backs up every hour. BUT.......I am techno-ignorant as well as techno-paranoid. I have the disks to update to snow leopard but knowing doing so may likely change/alter/lose/obliterate my current set-up, it actually makes me feel sick to think of it.
    Years ago when updating via Apple Protection Plan tech support, my screen actually went blank, everything gone! The tech told me not to worry, that "we" would be able to restore things, but several hours later I was still looking at a primitive looking screen that wasn't anything like what I had before. His language was too technical, in that there was an assumption I understood things I had zero understanding of. Example: partition my external drive.
    Anyway, living hundreds of miles from an Apple service provider, and no Apple techs in my community, I had to wait for a trip to an Apple Store where one of the wonderful guys at the genius bar spent a ton of time getting things back to normal and actually explaining it enough that I had a vague understanding.
    So now I am in the predicament again and won't know what to do after installing the new disks and finding a likely mess or absence of documents etc. on my computer. I don't know how to access the external drive, and even if I did I wouldn't know how to move stuff from that to my computer.
    Anyone have any suggestions?

    I'm in the same boat as you, I've used Mac's since day one and neglected my Windows education and now it has come to haunt me as I have to learn it like a school kid.
    Nearly 99% of all businesses and nearly 95% of everyone use Windows, Steve Jobs declared "The desktop wars are over, Microsoft won" a long time ago.
    By 2015 tablets are going to be selling to consumers more than traditional computers, your living proof, you got a iPad.
    Apple has already discontinued the Xserver, the Xraid, the MacBooks and the 17" Macbook Pro.
    Apple has introduced BootCamp in OS X 10.6 and up, this allows a partition and drivers so one can install Windows on a Mac.
    https://www.apple.com/support/bootcamp/
    Why do you think they named it "BootCamp"
    You can't run a older OS X version longterm like you have with 10.5 anymore, Mac's are being targeted for attacks and older OS X versions are dropped for security updates.
    In fact your Mac might still be part of the 750,000 Mac strong Flashback botnet or infected.
    https://en.wikipedia.org/wiki/Trojan_BackDoor.Flashback
    http://arstechnica.com/apple/2012/04/how-to-check-forand-get-rid-ofa-mac-flashba ck-infection/
    See here, Apple has no security updates for 10.5 users and soon 10.6 is going to be ignored next.
    https://support.apple.com/kb/ht1222
    1-1.5 years is the OS X upgrade cycle. Change everytime like it or not.
    So I'm thinking about your long term future and how you obviously don't like change, need local assistance like it appears you first claimed.
    So buy a new Mac and upgrade your OS X version whenever Apple shows it in AppStore.
    When your machine can no longer upgrade to the newest OS X version, then you've got about another 2 more years of security updates before you have to buy a new machine or risk running a insecure one.
    Learn here how to go about fixing your own machine and creating backups/bootable clones this way your not having to drive several hundred miles for a software or boot drive repair. Simply reverse clone your troubles away.
    Most commonly used backup methods
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents
    I'm of the maturity and experience that I know a Mac isn't always the best solution for everyone and even Apple doesn't provide the proper hardware, support or features for everyone. Why only store locations in high traffic ritzy areas?
    Our SteveJobs fan here is under 18 years old with good eyes, he's not older like we are with bad or failing eyesight.
    The new Mac's  have hard to see glossy screens and the type/UI can't be scaled up easily to accomadate our older eyes, however a Windows 7 machine does allow up to 150% scale of the UI, type etc., and also there are anti-glare screen PC's and just about no more anti-glare screen Mac's.
    I wrote this User tip in case you have trouble seeing the screen, at least you can scale the web browsing up
    Web browsing for hard of seeing users
    Apple might still be selling the anti-glare 15" non-retina on their online store, it's the "high resolution/anti-glare model"
    But I can get a 17" 1080i HD anti-glare Windows 7 laptop at Sager for a lot more performance and screen size for the price than a Mac.
    https://www.sagernotebook.com/index.php?page=category_browse&selected_cat=2
    Screen size is important as the UI and text can be scaled up for easier reading.
    Of course you do now have the option of having Windows pre-installed alongside OS X to begin your transition to the dark side.
    Just call and they will accomondate, hold the option/alt key at boot time to swtich operating systems.
    http://www.macmall.com/
    Windows 7 looks just as good as OS X, the secret is having a good monitor with most PC's come with don't.
    Good Luck and I hope I've given you a lot to think about.

  • Simple answer needed to complex question

    I said "simple" because, although a Mac user for many years, I have no knowledge of the tech angle (which gets me in trouble regularly.)
    In the last few days, my Safari started getting very slow on my iMac. I searched the forums and saw a suggestion that I discard a couple of files as well as "start in a safe mode" which required I do a restart with the shift key depressed.
    Here is where the strangeness began. Upon a restart after the safe mode, it would fire up, then after a minute or so, it would shut down. This happened a number of times.
    This is what I did: I started from my install disk and it fired up fine. I ran Disk Warrior and it resolved some issues, but said I had problems that could not be corrected.
    I had installed Application Enhancer a week or so ago and had no problems with the restart.
    Yes, I do have a number of 3rd party things, but have not suffered the failure to start that I now have.
    I guess my question is this: Have I done something that cannot be undone by starting in "Safe Mode" and if so, how do I undo what has been done? Also, what is safe mode and could it have corrupted something?
    By the way, I do not shut down any more or restart. I just let it sleep so that it will continue to run.
    Please, any suggestions (other than the obvious "reinstall Leopard") would be greatly appreciated.
    Thanks in advance!

    Which iMac do you have (would be helpful if you updated your signature)?
    I just recently read a post where several people had major problems with Applications Enhancer and needed to uninstall that app to get rid of the problems.
    When you ran Disk Warrior, what exactly did it fix and what were the problems that could not be resolved? Can you post or copy the screenshots/messages?
    Here's a link to the Apple article explaining safe mode:
    http://support.apple.com/kb/HT1564?viewlocale=en_US

  • Need a simple answer for simple question???

    simple question... what is the best way to export my fce movie and burn it on idvd for the best quality for genaral use ... sd..4x3 ratio tv.. lots of ken burn effects on photos... lots of sd video... ???
    not so simple answer... i have read manuals.. apple discussions.. etc etc my eyes are blurry.. i have been exporting out of fce to qk time movie, then import to idvd and burn..
    i get lots of wavy or jitter when doing kens burn effects on photos.. i have been told that 1 field must be missing.. and its better to take the qk time movie convert it again making sure hi quality is checked(movie properties 720 x 480) and self contained movie, then import to imovie ver 5.02 which has better codecs then to idvd ... an apple store tech said..
    then another apple store tech said...dv pro or dv stream or interlaced or on and on and on
    its not 16x9, or for the web or anything but simply burn it and give it to my grandma to play in a standard dvd player.. best quality.. period.. i know it won't any better than my source video but the wavy photos bother me..
    help

    The Apple store tech told you garbage. The quality will be the same. It's using the same QuickTime engine. There may be a difference because going through iMovie will go through a file conversion and the picture might be softened a little, which will mitigated this flicker you see.
    The wavy photos can be a lot of things, most likely due to the nature of the images themselves and the movements you've done on them. What often works on still images is to apply a one pixel vertical motion blur in an application like Photoshop or Elements. This helps to reduce interlace flicker on motion when the material is brought into a video editing application.

  • HT5400 If I install OS6 on my iPhone 4, will it retain as intact, all my settings and apps? OS 5 did not do so, which required HOURS of manually restoring apps, settings, etc. I am wary of another complete OS upgrade, so soon. Waiting till answers come.

    If I install OS6 on my iPhone 4, will it retain as intact, all my settings and apps? OS 5 did not do so, which required HOURS of manually restoring apps, settings, etc. I am wary of another complete OS upgrade, so soon. Waiting till reassuring answers come, before attempting install.

    You will get prompt reply if you post your question in the iPhone community forum.
    https://discussions.apple.com/community/iphone/using_iphone

  • HT5714 my itunes wont let me download songs because it says its my first time purchasing something from this account which isnt true and it wants me to answer my security question which i forgot, what do i do?

    My computer wont let me download songs from itunes because when i try to purchase one it makes me type in my password, then it says that since its my first time purchasing some thing from this account (which isnt true) i have to answer my security question which i forgot, what do i do?

    bmr1296 wrote:
    i have to answer my security question which i forgot, what do i do?
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for