Shi means small, so that HIBERNATE support for the standard deviation of the variance function of MYSQL

Open-source category org.hibernate.dialect.MySQLDialect

In the constructor to include two lines of code

registerFunction ( "variance", new StandardSQLFunction ( "variance", Hibernate.DOUBLE));
registerFunction ( "stddev", new StandardSQLFunction ( "stddev", Hibernate.DOUBLE));

Compile this class, the replacement of the same name to hibernate3.jar in class.

Village at HQL you can use the following statement you:

select stddev (obj.nl) from User as obj

This SQL can be directly obtained form the user's age standard deviation (seeking variance with variance function).

分类:Java 时间:2009-03-04 人气:575
分享到:
blog comments powered by Disqus

相关文章

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.107 (s). 12 q(s)