Is there a way to query the database date / time without using active query ?
In Oracle I do this:
SQLQuery qry = session.createSQLQuery("SELECT SYSDATE FROM dual");
But I would like a generic query to not price the database.
Is there a way to query the database date / time without using active query ?
In Oracle I do this:
SQLQuery qry = session.createSQLQuery("SELECT SYSDATE FROM dual");
But I would like a generic query to not price the database.
Try this query:
SQLQuery query = session.createSQLQuery("SELECT CURRENT_DATE");