A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
How to use CreateNativeQuery to query single value from SQL database value?
Joined: Apr 06, 2011
Apr 06, 2011 06:12:55
using a CRUD and want to access a certain value in the databse. what I tried is:
Query query = em.createNativeQuery("select o from Table o where o.IDfield= '938'");
Table o = (Table)query.getSingleResult();
but this fails.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: How to use CreateNativeQuery to query single value from SQL database value?
issue to pass the dynamic value in query
using string as column name in select query?
my result holding null values
How to delete the row from the Database by using while loop in servlet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014