Use ifnull instead of isnull isnull is used to determine whether it is null. The return value is 1 for null or 0 for not null. ifnull is equivalent to Oracle's nvl, and is used as follows mysql> select ifnull(1,10); mysql> select ifnull(null,10);
mysql> select isnull(null); mysql> select isnull(1); The above article briefly talks about whether MySQL can have functions similar to Oracle's NVL. This is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Linux system disk formatting and manually adding swap partition
>>: How to create a project with WeChat Mini Program using typescript
Table of contents Preface Architecture at a Glanc...
Table of contents Let's talk about flattening...
The most important interactive design article in ...
Fix for issues with historical Linux images The E...
Many people also asked me what books I read when ...
Conclusion: In a multithreaded environment, if on...
environment Server: centos7 Client: window Deploy...
Because the distribution package of MySQL Communi...
1. Install mysql5.6 docker run mysql:5.6 Wait unt...
1. Command Introduction The stat command is used ...
HTML is a hybrid language used for publishing on ...
Table of contents Primary key constraint Unique C...
The implementation principle of chain programming...
In this article, I will explain the relevant cont...
This article uses an example to illustrate the us...