If I have an Oracle database, with structure, SCHEMA/TABLE1 SCHEMA/TABLE2 and I want to create a query to select all rows from Table1, would it be,
“Select x from SCHEMA.TABLE1 x”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have an entity such as:
Then, the following basic JPQL Query would select all the
Table1Classentities:Select x from Table1Class x.Summing up, you don’t need to (not that you can, either) specify schema and table name on JPQL queries, just the class name the table is mapped to.