Jump to content

Error: Out of range value adjusted for column 'delhours' at row 1


dmccabe

Recommended Posts

I have 4 fields in a database which are set as type "DECIMAL(4,2)"

 

These are to hold montery values eg: 99.00 and distance in miles eg: 59.5

 

This works until I put in a 3 or 4 digit number before the decimal place eg: 1000.26

 

At which point I get this error:

 

"Error: Out of range value adjusted for column 'delhours' at row 1"

 

Anyone give me any clues why?

 

Link to comment
Share on other sites

yes I can because the decimal number 1000.26 is actually a "DECIMAL(6,2)"

 

the decimal format requires two arguments, the first is the maximum number of total digits allowed and the second is the maximum number of digits after the decimal point

 

hope that helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.