当前位置:网站首页>The difference between int and integer. Is int or integer used in practical applications?
The difference between int and integer. Is int or integer used in practical applications?
2022-07-29 03:25:00 【Yang Jianye】
- int It's the basic data type ,integer Is the packaging data type ;
- in application , If your field needs to be set to null, For example, one field is the balance of ICBC card , If there is no ICBC card, you need to set the balance to null, Have a bank card but no money set to 0, Use this time integer type ; If there is no ICBC card and the balance is 0 Set to 0, use int Can . Mainly depends on demand ;
- If your business needs to use int, However, it is still necessary to distinguish between those without a bank card and those with a bank card but with a balance of 0, Then you only need to set the value of the field to -1 when , Represents no bank card , The field values for 0 when , The balance is 0 That's all right. .
边栏推荐
- 04 | background login: login method based on account and password (Part 1)
- VISO fast rendering convolution block
- Learn more than 4000 words, understand the problem of this pointing in JS, and handwrite to realize call, apply and bind
- MySQL installation and configuration super detailed tutorial and simple database and table building method
- Rongyun real-time community solution
- 正则表达绕过waf
- Server operation management system
- mysql的timestamp存在的时区问题怎么解决
- Multi level wavelet CNN for image restoration
- i. MX 8m plus integrated dedicated neural processing engine (NPU)
猜你喜欢

Summary of basic knowledge points of C language

Photo scale correction tool: DxO viewpoint 3 direct mount version

Example analysis of while, repeat and loop loops in MySQL process control

数字孪生实际应用案例-智慧能源篇
![[freeswitch development practice] media bug obtains call voice flow](/img/14/9a359403606c312b30733d4a015fa5.png)
[freeswitch development practice] media bug obtains call voice flow

Producer consumer model of concurrent model

【科技1】

12_ UE4 advanced_ Change a more beautiful character model

Detailed steps for installing MySQL 8.0 under Linux

How to deploy sentinel cluster of redis
随机推荐
Tencent cloud logs in with PEM
Typescript learning (I)
[freeswitch development practice] media bug obtains call voice flow
Shell script summary
C obtains JSON format data asynchronously from the web address
three.js 第五十四用如何给shader传递结构体数组
How to solve the time zone problem in MySQL timestamp
[robot learning] matlab kinematics and ADMAS dynamics analysis of manipulator gripper
ShardingSphere之水平分表实战(三)
ROS - create workspace
Introduction and advanced level of MySQL (11)
【C】 Array
How to realize shortcut keys for interface scaling by vscade
Incremental real-time disaster recovery notes
Photo scale correction tool: DxO viewpoint 3 direct mount version
如何判定是stun协议
Anti vulnerability · benefit from uncertainty --- management?
Example analysis of while, repeat and loop loops in MySQL process control
1.4 nn. Module neural network (II)
C traps and defects Chapter 3 semantic "traps" 3.6 Boundary Calculation and asymmetric boundary