Solved

is there a max int constant?

Posted on 2009-07-15
5
3,190 Views
Last Modified: 2013-11-05
is there a predefined "constant" for the maximum integer value? I'd like to do something like: update myTable set myIntCol = #maxIntVal
0
Comment
Question by:jmarkfoley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 24863368
no.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24863385
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
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 24863464
or update with   '2147483647' which is the maximum an integer variable can store
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24863484
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
 
LVL 1

Author Closing Comment

by:jmarkfoley
ID: 31603946
Bummer :(  Thanks.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question