我已通过我的网络应用运行此查询
select emp.empname,
max(case months when 'jan' then SUBSTRING(TIMEDIFF('04:00','02:00'),1,5)
else '-' END) as jan
from permission perm, employee emp
where emp.employeeid=permissionid
and permissionid=_id;
它在本地完美运行并给出了值,但在服务器上它给出了对象而不是值。
对象中的答案 - [B @ 5451654
List<Object> takenlist=iService.Servicefetchallpermbalance(id);
for (int index = 0; index < takenlist.size(); index++)
{
Object row[] = (Object[]) takenlist.get(index);
System.out.println((String)(row[1]));
}