`

hibernate show sql

阅读更多

Hibernate: select * from ( select areaoperat0_.F001N_0003 as F1_5_, areaoperat0_.F002V_0003 as F2_5_, areaoperat0_.F003D_0003 as F3_5_, areaoperat0_.F004V_0003 as F4_5_, areaoperat0_.F005V_0003 as F5_5_, areaoperat0_.F006V_0003 as F6_5_, areaoperat0_.F007V_0003 as F7_5_, areaoperat0_.F008V_0003 as F8_5_, areaoperat0_.F009V_0003 as F9_5_, areaoperat0_.F010V_0003 as F10_5_ from TB_DQHD_0003 areaoperat0_ where areaoperat0_.F004V_0003='141' order by areaoperat0_.F005V_0003 desc ) where rownum <= ?

 

其中蓝色部分可以直接拷到数据库进行查询!这可是好东西

分享到:
评论

相关推荐

    BoneCP数据源记录SQl比hibernate的show sql好用.docx

    BoneCP数据源记录SQl比hibernate的show sql好用.docx

    采用p6spy完整显示hibernate的SQL语句

    虽然在hibernate中有show_sql选项,但是显示出来的语句大多类似 select * from xxx where value=? 但是有时候我们需要得到完整的SQL语句,怎么办呢?使用P6SPY就可以完成这个任务

    p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用

    p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用 p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用 p6spy和sqlProfiler的配合使用让你的hibernate的show_sql更好用

    三步完成Hibernate + sql server200 + proxool连接池

    &lt;property name="show_sql"&gt;True&lt;/property&gt; 其他标签就删去吧! 第二步:web.xml 加入:[/b] &lt;servlet &gt; &lt;servlet-name &gt;ServletConfigurator &lt;/servlet-name &gt; &lt;servlet-class &gt;org.logicalcobwebs....

    SpringMVC+Hibernate全注解整合

    &lt;prop key="hibernate.show_sql"&gt;true &lt;!-- 配置hibernateTemplate --&gt; &lt;bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"&gt; class="org....

    Hibernate开发jar包

    &lt;property name="hibernate.show_sql"&gt;true &lt;property name="hibernate.format_sql"&gt;true &lt;property name="hibernate.hbm2ddl.auto"&gt;update &lt;!-- 配置C3P0的连接池 --&gt; ...

    优化Hibernate性能的几点建议

    <prop key="hibernate.show_sql">false !-- Create/update the database tables automatically when the JVM starts up <prop key="hibernate.hbm2ddl.auto">update</prop> --> !-- Turn batching off for ...

    hibernate用法

    hibernate.dialect = org.hibernate.dialect.MySQLDialect //指定数据库使用的sql方言(oracle、mysql) hibernate.connection.driver_class...hibernate.show_sql=true //true表示程序运行时,会在控制台输出sql语句。

    Hibernate配置各种数据源详解

    ”show_sql”&gt;true &lt;!– SQL方言,这边设定的是MySQL –&gt; ”dialect”&gt;net.sf.hibernate.dialect.MySQLDialect&lt;/property&gt; &lt;!– 一次读的数据库记录数 –&gt; ”jdbc.fetch_size”&gt;50 &lt;!– 设定对数据库进行批量...

    Hibernate笔记 马士兵

    六、 ehibernate.cfg.xml : show_sql 17 七、 hibernate.cfg.xml :format_sql 17 八、 表名和类名不同,对表名进行配置 17 九、 字段名和属性相同 17 十、 字段名和属性名不同 17 十一、 不需要(持久化)psersistence...

    使用Hibernate实现增删改查

    配置文件中的 &lt;property name="show_sql"&gt;true&lt;/property&gt; 是为了在控制台显示sql语句 这样hibernate框架环境就搭建好了 第三步,建好hibernate框架之后 需要我们有对应的数据库和实体类,所以我们要去创建数据库...

    hibernate.properties

    #hibernate.show_sql true ## format SQL in log and console hibernate.format_sql true ## add comments to the generated SQL #hibernate.use_sql_comments true ## generate statistics #hibernate....

    javaee 书上的Customer程序

    怎样运用Hibernate hibernate.dialect=org.hibernate.dialect.SQLServerDialect hibernate.connection.driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver hibernate.connection... hibernate.show_sql=true

    Java.Persistence.with.Hibernate.2nd.Edition

    they map to SQL tables and columns. We explore all basic and advanced mapping options in Hibernate and Java Persistence. We show you how to deal with inheritance, collections, and complex class ...

    解決 SQL Server & Hibernate 一起使用,造成死結問題

    This is a bit like the way Hibernate uses optimistic locking for versioned objects. The benefit is that lock contention is totally removed because there aren’t any locks on rows! This means that ...

    Hibernate1

    &lt;property name="show_sql"&gt;true &lt;!-- Drop and re-create the database schema on startup --&gt; &lt;property name="hbm2ddl.auto"&gt;update &lt;/hibernate-configuration&gt; 5.创建实体类 package cc.tukai....

    hibernate配置

    二.创建持久化对象和映射文件 1.持久化对象创建 2.... &lt;!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/... &lt;property name="show_sql"&gt;true 映射文件所在包/?.hbm.xml"/&gt; &lt;/hibernate-configuration&gt;

    Spring + Hibernate + Struts 事务配置小例子(带提示框等小技巧)

    &lt;prop key="hibernate.show_sql"&gt;true &lt;prop key="hibernate.cglib.use_reflection_optimizer"&gt; true &lt;prop key="hibernate.cache.provider_class"&gt; org.hibernate.cache....

    经典struts2+spring2+hibernate3

    经典的struts2+spring2+hibernate3编程。 实现为MySQL,带有技术说明文档,sql文档。 是学习struts2+spring2+hibernate3编程的经典案例。 核心为show.action

    struts2.3+hibernate3.6+spring3.1整合的纯xml配置的小项目

    &lt;prop key="hibernate.show_sql"&gt;true &lt;prop key="hibernate.format_sql"&gt;true class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt; ...

Global site tag (gtag.js) - Google Analytics