Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3528
  • Last Modified:

is there a max int constant?

is there a predefined "constant" for the maximum integer value? I'd like to do something like: update myTable set myIntCol = #maxIntVal
0
jmarkfoley
Asked:
jmarkfoley
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
no.
0
 
chapmandewCommented:
Nope, there isn't.  But, you can create yourself a table and pull the value(s) you need from that....shoudl be easy enough to do.
0
 
Aneesh RetnakaranDatabase AdministratorCommented:
or update with   '2147483647' which is the maximum an integer variable can store
0
 
chapmandewCommented:
Im sure the user knows the value, but doesn't want to have to remember it.....pulling from a table seems like an easy solution.
0
 
jmarkfoleyAuthor Commented:
Bummer :(  Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now