1.先看看Null与''在oracle中的表现 C:\Users\zen>sqlplus hr/hr SQL Production :: Copyright (c) , , Oracle. All rights reserved. Connected to: Oracle - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL)); Table cre…
sql中的case when 有点类似于Java中的switch语句,比较灵活,但是在Mysql中对于Null的处理有点特殊 Mysql中case when语法: 语法1: CASE case_value WHEN when_value THEN statement_list [WHEN when_value THEN statement_list] ... [ELSE statement_list] END CASE 语法2: CASE WHEN search_condition THEN s…