`
davidxiaozhi
  • 浏览: 241695 次
  • 性别: 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...

    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 ...

    Literal控件的使用

    "Literal控件的使用" Literal控件是ASP.NET Web应用程序中的一种常用的服务器控件,用于在Web页面中显示静态文本或动态生成的内容。在本文中,我们将对Literal控件的使用进行详细的介绍,包括其基本概念、使用场景...

    Literal(2.0)

    "Literal(2.0)"是一个关于ASP.NET 2.0框架中Literal控件的实例教程。Literal控件在Web开发中扮演着重要角色,尤其在处理静态文本或HTML时非常实用。下面我们将深入探讨Literal控件的核心概念、功能以及如何在C#编程...

    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 ...

    新手常见Python运行时错误汇总.docx

    print('The name of my pet zebra is ' + spam['zebra']) ``` 解决方法是检查字典中的键值是否存在。 SyntaxError: invalid syntax 该错误发生在忘记在 if, elif, else, for, while, class, def 声明末尾添加冒号...

    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 ...

    skopos theory翻译功能目的论.ppt

    It encourages translators to prioritize the purpose of the translation over literal fidelity, acknowledging the dynamic nature of language and the importance of adapting to different cultural ...

    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 ...

    Shell Script

    Here, `date` inside backticks is executed first to get the current date, which is then printed as part of the sentence. #### Arithmetic Operations in Shell Scripts Shell scripts can perform ...

    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 ...

    invalid type literal(解决方案).md

    invalid type literal(解决方案).md

    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 ...

    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 ...

    div+Literal控件的定位

    在网页设计中,"div+Literal控件"的定位是一个重要的技术环节,它涉及到前端布局和用户交互体验。本文将详细解析如何通过div元素和Literal控件实现精确定位选项卡,以及处理滚动条出现时的内容展示问题。 首先,`...

Global site tag (gtag.js) - Google Analytics