MySQL上的ISNULL与colation latin_swedish_ci和utf8_general_ci一起工作



我在mariaidb上有两个数据库,ininodb作为引擎,两个数据库都有latin_swedish_ci作为整理,但是当我执行时,一个 latin_swedish_ci作为表分解,而其他utf8_general_ci作为表collation,necute necute necute necute necrud new refork join join join join comin在数据库上具有以下查询:

SELECT `ct`.`name` 
FROM `csv_temp` as `ct` 
left join `trans_recs` as `tr` on `ct`.`name` = `tr`.`name` 
where `tr`.`name` is null and `ct`.`fk_project_id` = 1

我在DB和表格上都有latin_swedish_ci整理的正确结果,但在DB上与latin_swedish_ciutf8_general_ci的表中取空。

是否有解释他的行为。提前致谢。

在mysql上dis isnull与colation latin_swedish_ci和utf8_general_ci

有所不同。

它没有。当单元格在整理中无效时,ISNULL将起作用。

我在DB和表格上都可以通过Latin_swedish_ci进行正确的结果,但是在DB上与Latin_swedish_ci和utf8_general_ci。

也许默认值是一个空字符串,而不是CLATION latin_swedish_ci

而不是NULL

最新更新