Is there a way to get the max value that can be stored in a bigint, without hardcoding it?
Is there a function or a constant that returns/contains this value?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the answer provided in this similar question. There is no way, as far as I know, to programmatically find the answer you’re looking for.
Based on the comments you posted on another answer, this would allow you to only have to change your values in one place, as opposed to multiple places.