3

I have a query for mysql where ifnull() is used.i want to convert it into ejb-ql. Problem here is that i dont find any substitute equivalent to ifnull() in ejb.

For eg:

ifnull(columnname,' ') as newcoulmn
Mufaddal Kagda
  • 160
  • 1
  • 10

1 Answers1

1

You may try

  coalesce(columnname, ' ') as newcolumn

since coalesce is widely supported function when ifnull is MySql specific one

Dmitry Bychenko
  • 180,369
  • 20
  • 160
  • 215