Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 ifnull() 的 mysql 查询。我想将其转换为 ejb-ql。这里的问题是我在 ejb 中找不到任何等效于 ifnull() 的替代品。
例如:
ifnull(columnname,' ') as newcoulmn
你可以试试
coalesce(columnname, ' ') as newcolumn
因为coalesce是广泛支持的功能,什么时候ifnull是 MySql特定的功能
coalesce
ifnull