`
davidxiaozhi
  • 浏览: 236901 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

The literal 100000000000000 of type int is out of range

 
阅读更多

The literal 100000000000000 of type int is out of range

 

今天在手动形成主键的时候 编译类的时候出现上面这个错误,

原来在Java代码中直接书写的数字是int类型的,就是说数字的范围在 -2^31 到 2^31 - 1 这个范围之中,无论将这个数字赋值给什么类型。

不过有的时候需要直接赋值大的数字,如果想直接赋最大值的时候只需要转换一下就行了Long.parseLong()

 

分享到:
评论

相关推荐

    The Art of Assembly Language Programming

    The 80x86 MOV Instruction 4.8 - Some Final Comments on the MOV Instructions <br>4.9 Laboratory Exercises 4.9.1 The UCR Standard Library for 80x86 Assembly Language Programmers 4.9.2 ...

    JSP Simple Examples

    and one of the feature of OOP in java is that, we can assign a subclass object or variable to the variable of the superclass type. Log files Log files keeps a records of internet protocol addresses...

    Python ValueError: invalid literal for int() with base 10 实用解决方法

    ValueError: invalid literal for int() with base 10的错误 网上同样的错误有人建议用round(float(“1.0″)),但是解决不了我这个问题,round(float(“1.0″))是用于解决浮点数转换为整形数的, 而我这个则是因为...

    MCQ.zip_float

    Which of the following is a valid literal of type float in Java? (a) 10.5d (b) 10.5fp (c) 10.5f (d) 10.5sp Correct answer is (c) 3. Which of the following is a list of all possible ...

    sqlalchemy

    other approaches it from the perspective of literal schema and SQL expression representations which are explicitly composed into messages consumed individually by the database. A successful ...

    Elementary Mathematics from an Advanced Standpoint I by Felix Klein 1932

    The term higher is not only a more literal translation of höheren than advanced is, but it also captures better the image Klein had for his work. Advanced can mean higher, but its connotation is ...

    unidac_7_1_4_pro DELPHI 10 Tokyo

    Bug with using batch parameters of the Bytes type is fixed Bug with closing a connection that has an active transaction for Firebird 3 is fixed Bug with recreating a connection on Linux and mobile ...

    Unidac Pro 7.1.4 XE8

    Bug with using batch parameters of the Bytes type is fixed Bug with closing a connection that has an active transaction for Firebird 3 is fixed Bug with recreating a connection on Linux and mobile ...

    UniDAC 7.1.4

    Bug with using batch parameters of the Bytes type is fixed Bug with closing a connection that has an active transaction for Firebird 3 is fixed Bug with recreating a connection on Linux and mobile ...

    unidac_7_1_4_pro DELPHI 10 Berlin

    Bug with using batch parameters of the Bytes type is fixed Bug with closing a connection that has an active transaction for Firebird 3 is fixed Bug with recreating a connection on Linux and mobile ...

    Literal(2.0)

    Literal控件的例子

    a_byte_of_python

    it was written by Swaroop C H.its name is "a byte of python". Table of Contents Preface Who This Book Is For History Lesson Status of the book Official Website License Terms Using the ...

    aes 加密代码

    extensions exist and the next octet is the start of the Initialization Vector (IV). Following an extension, this length indicator would appear again to indicate presence or absense of another ...

    LuaUnicode icu-lua

    To be honest, using characters outside of the ANSI range in Lua identifiers is not a good idea, since your programs will not compile in the standard C locale. Comparison and Sorting Lua string ...

    Literal控件的使用

    Literal控件的使用 自己在做网页的时候,总结的一点东西

    JavaScript: The Good Parts

    If you want to learn more about the bad parts and how to use them badly, consult any other JavaScript book., JavaScript is the language of the Web -- the only language found in all browsers -- so ...

    protobuf-cpp-3.16.0-rc-1-源码+已编译的静态库.zip

    适用qt5.9 win 环境下 protobuf 3.16 源码加已编译的静态库

    UE(官方下载)

    The benefit of a column maker is that it can help you to format your text/code, or in some cases to make it easier to read in complex nested logic. Quick Open UltraEdit and UEStudio provide multiple ...

    历年六级完型真题汇总

    Intellectual property is protected 64 misappropriation(盗用)Misappropriation is taking the Intellectual property of others without 65 compensation and using it for monetary gain.  Legal protection ...

    gotchas:去陷阱,惊喜,困惑

    prog.go:31:13: cannot use promoted field A.A1 in struct literal of type B 缺少高索引导致超出范围 切片的高索引看起来不是。 问题:以下代码片段是否可以编译? 跑步? 恐慌? package main func main () { ...

Global site tag (gtag.js) - Google Analytics