Register / Login
Win a copy of
Android Programming: The Big Nerd Ranch Guide
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
JDBC and Relational Databases
How to use CreateNativeQuery to query single value from SQL database value?
posted 6 years ago
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.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
my result holding null values
issue to pass the dynamic value in query
using string as column name in select query?
How to delete the row from the Database by using while loop in servlet