有一个交叉连接表需要为特定列捕获至少一个not null值的行:
where books.id is not null
or typings.id is not null
or translates.id is not null在where子句中是否有防止重复not null的功能或方法?
就像这样:
where at_Least_not_Null_One_Of(books.id,typigns.id,translates.id)
发布于 2016-07-01 04:37:31
使用COALESCE
COALESCE(books.id,typigns.id,translates.id) IS NOT NULLhttps://stackoverflow.com/questions/38137137
复制相似问题