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
1. Change the transparency to achieve the gradual...
Table of contents 1. Build the operating environm...
HTML implements 2-column layout, with fixed width...
Table of contents Overview Checking setTimeout() ...
1. Introduction to MariaDB and MySQL 1. Introduct...
Table of contents Vue recursive component drag ev...
1. Download MySQL Click on the official website d...
Preface The most widely used database in Linux is...
Assume that a node in the three-node MGR is abnor...
mysql-5.7.17-winx64 is the latest version of MySQ...
Preface In general development, images are upload...
When developing a project, you will often encount...
1. Download and install the official MySQL Yum Re...
There are some differences between filter and bac...
Docker supports running on the following CentOS v...