---
title: "hibernate在写HQL语句时"
author: "zjlbckf"
date: "2014-03-07T18:49:43Z"
tags: []
categories: ["编程语言"]
slug: "hibernate-hql"
draft: false
lastmod: "2014-03-07T18:49:43Z"
id: 2028089
url: "https://swkj.iteye.com/blog/2028089"
---

HQL和SQL的区别是：

     hql是面向对象查询，格式：from + 类名 + 类对象 + where + 对象的属性，对大小敏感

     sql是面向数据库表查询，格式：from + 表名 + where + 表中字段