1.判断字段是否为null,是用 is null
select * from table_name where col_name is null;
2.判断字段是否为空
select * from table_name where col_name is null or col_name = '';
3.注释
(1)单行注释使用#
(2)单行注释还可以使用 "-- ", 注意--后跟有一个空格
(3)多行注释: 使用/* */
1.判断字段是否为null,是用 is null
select * from table_name where col_name is null;
2.判断字段是否为空
select * from table_name where col_name is null or col_name = '';
3.注释
(1)单行注释使用#
(2)单行注释还可以使用 "-- ", 注意--后跟有一个空格
(3)多行注释: 使用/* */