how to select column's value as null in hql?
ex: In sql
select null as empname from emp; in sql
In hql
ex: select emp.empname as col1 from Employee emp;
I want to select empname' value as null as explained in the above sql query
You can use cast function. Like this,
select cast(null as char) as hede from emp e
Or use quotes and change your controls to empty checks.
select '' as hede from emp e
精彩评论