![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 6 of 6 total |
![]() |
Sun, Mar 21 2010 10:31 AM | Permanent Link |
Roy Lambert NLH Associates ![]() | What is the smallest size VARCHAR I can use in a cast to ensure all digits of an integer fit? I'm currently using VARCHAR(16) but looking at MaxInt I should be OK with 10.
Roy Lambert |
Mon, Mar 22 2010 12:19 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Roy,
<< What is the smallest size VARCHAR I can use in a cast to ensure all digits of an integer fit? I'm currently using VARCHAR(16) but looking at MaxInt I should be OK with 10. >> For a 32-bit INTEGER, the max size would be Length('-2147483647'), or 11 digits (allowing for the sign). -- Tim Young Elevate Software www.elevatesoft.com |
Mon, Mar 22 2010 2:14 PM | Permanent Link |
Rita Tipton | "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message news:14418144-59F7-4715-A28F-5A89A8AA05EB@news.elevatesoft.com... > > For a 32-bit INTEGER, the max size would be Length('-2147483647'), or 11 > digits (allowing for the sign). > Bet u didnt calculate that on your fingers ![]() Rita |
Tue, Mar 23 2010 12:36 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Rita,
<< Bet u didnt calculate that on your fingers ![]() Nah, but you do start to memorize a lot of the "magic" numbers by rote after a bit of time doing database engine work. They constantly come up in various forms. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Mar 23 2010 5:15 PM | Permanent Link |
Steve Gill | > Nah, but you do start to memorize a lot of the "magic" numbers by rote after > a bit of time doing database engine work. They constantly come up in > various forms. Do you get the same sequence of "magic numbers" that constantly come up in Lost? ![]() Steve |
Thu, Mar 25 2010 2:45 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Steve,
<< Do you get the same sequence of "magic numbers" that constantly come up in Lost? ![]() I wish - weren't they winning lottery numbers ? ![]() -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, August 14, 2024 at 07:31 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |