---
title: "hibernate executeSQLQuery 对于 mysq char(n)类型字段取值问题"
author: "hehch"
date: "2011-12-27T18:02:41Z"
tags: ["Hibernate"]
categories: ["开源软件"]
slug: "hibernate-executesqlquery-mysq-char-n"
draft: false
lastmod: "2011-12-27T18:02:41Z"
id: 1328053
url: "https://hehch.iteye.com/blog/1328053"
---

这样只会去除第一个字母，不能去除字段全部值，改成varchar即可
这是hibernate实现的缺陷