|
这个主题共有 0 回复 / 1 页 [
]
|
|
|
|
|
|
只能得到第一个字段第一个字的问题
|
发表: 2008年04月24日 12:07
|
回复
|
|
list = (List) em.createNativeQuery(sb.toString()).getResultList(); if(list!=null){ Iterator it = list.iterator(); while(it.hasNext()){ Object[] row = (Object[])it.next(); System.out.println(row[1].toString()); }
使用jpa进行查寻,只能得到数据表里一个char(10)字段的第一个字。
有人知道这是为什么吗?
有解决办法吗?
|
|
|
|