当前位置:网站首页>Take a database statement note: when the field is empty, assign the default value to the result
Take a database statement note: when the field is empty, assign the default value to the result
2022-07-25 03:13:00 【Sleeping bamboo】
MySQL in :IFNULL function
Format :IFNULL( e1 , e2)
explain :e1: Represents the field name in the table
e2 : Indicates when the field e1 It's empty time , Assign a value of e2
for example :
When age When there is no , The default value is 0
select ifnull(age,0) from studentEmpathy
stay Oracle in , Out of commission IFNULL function , Need to use NVL Function instead of
Format :
NVL( e1, e2 )
usage : And IFNULL The functions are the same
边栏推荐
- Print the common part of two ordered linked lists
- Inheritance (prototype)
- Operator explanation - C language
- Canvas record
- Node queries the path of all files (files or folders) named filename under the target directory
- mysql_ Case insensitive
- Stm32cubemx quadrature encoder
- Method of adding kernel in Jupiter notebook
- # CF #808 Div.2(A - C)
- mysql_ Record the executed SQL
猜你喜欢

Consistent hash, virtual node, bloom filter

Hashcode details

How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen

Learning record XIII

Openlayers ol ext: Transform object, rotate, stretch, zoom in

04 -- two ways of writing el and data

Reasons for not sending requests after uni app packaging

Unity refers to a variable in another class (its own instance)

Error: tomee required to support ear/ejb deployment

2022-07-19: all factors of F (I): I are added up after each factor is squared. For example, f (10) = 1 square + 2 square + 5 square + 10 square = 1 + 4 + 25 + 100 = 130.
随机推荐
05 - MVVM model
Node queries the path of all files (files or folders) named filename under the target directory
Brief understanding of operational amplifier
Riotboard development board series notes (V) -- porting u-boot
New key points of ES6
JS written test question -- browser kernel
Win10 -- open the hosts file as an administrator
Merge sort / quick sort
Swiper4 is used to smooth longitudinal seamless scrolling. After clicking or dragging the mouse, the animation is not completely completed, the mouse moves out of the automatic rotation, and the dynam
Unity refers to a variable in another class (its own instance)
Solve the error: could not find 'xxxtest‘
Decoding webp static pictures using libwebp
Use and introduction of vim file editor
Vscode configuration, eslint+prettier combined with detailed configuration steps, standardized development
Riotboard development board series notes (VII) -- the use of framebuffer
JS foundation -- math
Stm32cubemx quadrature encoder
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
Function of each layer of data warehouse
Color space (2) -- YUV