nvlHQL中的
coalesce命令等效于该命令。 如果不为null,则
coalesce(a,b)返回,否则返回。
a``a``b
因此,您需要以下方面的东西:
from Table where col1 = coalesce(:par1, 'asdf')

nvlHQL中的
coalesce命令等效于该命令。 如果不为null,则
coalesce(a,b)返回,否则返回。
a``a``b
因此,您需要以下方面的东西:
from Table where col1 = coalesce(:par1, 'asdf')