HQL usage

each column is a field

 

HQL

is object oriented

 

 Statement FROM persistent class name

 Returns all records in the corresponding table of this class

 

Statement WHERE

condition! ! ! ! Qualify to filter records

 

Statement SELECT

You don't need to return all the columns, just select a few columns to return. Get multiple columns separated by commas

 

Statement ORDER BY property

Sort by an attribute in ascending order, add DESC to descending order

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324948153&siteId=291194637