当前位置:网站首页>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
边栏推荐
- Preliminary foundation JVM
- Use and introduction of vim file editor
- mysql_ Account authorization permission recycling, account locking and unlocking, account creation and deletion
- JS written test questions -- random numbers, array de duplication
- Download the jar package of jsqlparser and PageHelper
- Stm32cubemx quadrature encoder
- Test question C: question brushing statistics
- Resolve the error: org.apache.ibatis.binding.bindingexception
- 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.
- Unified return data format
猜你喜欢

Direct insert sort / Hill sort

Riotboard development board series notes (6) -- buildreoot building system image

Riotboard development board series notes (VIII) -- building desktop system

B. Almost Ternary Matrix

Dynamic planning of force buckle punch in summary

Beginners must see the markdown User Guide

Technical experts from large factories: Thoughts on cloud nativity and software supply chain security

Read and upgrade st-link chip information and SWD burning media through STM32 stlink utility tool

Bubble sort / heap sort

Dynamic programming -- Digital DP
随机推荐
Enter an integer and a binary tree
Learning record 12
Win10 -- open the hosts file as an administrator
Decoding webp static pictures using libwebp
Using one stack to sort another stack
The dolphin scheduler calls the shell script and passes multiple parameters
JS foundation -- math
# CF #808 Div.2(A - C)
JS construction linked list
DOM node type
PHP record
List title of force buckle summary
Edit mathematical formulas in markdown
Solve ''_ Xsrf 'argument missing from post
A. Subtle Substring Subtraction
mysql_ Create temporary table
Use and introduction of vim file editor
Wechat sports field reservation of the finished works of the applet graduation project (7) mid-term inspection report
IO (1) -io layering
Daily three questions 7.19