- 如果mysql字段的定义是:
那么在使用如下sql查询是会失效
SELECT * from ord_contract where contract_code is null;
SELECT * from ord_contract where ISNULL(contract_code);
必须用如下方式
SELECT * from ord_contract where contract_code='';
所以在多边联查的时候要格外注意使用 is null
SELECT * from ord_contract where contract_code is null;
SELECT * from ord_contract where ISNULL(contract_code);
必须用如下方式
SELECT * from ord_contract where contract_code='';
所以在多边联查的时候要格外注意使用 is null