`

015_showsql_formatsql

 
阅读更多

015_showsql_formatsql

 

 

会把sql语句打印在console

/hibernate_0100_HelloWorld/src/hibernate.cfg.xml

 

 <!-- Echo all executed SQL to stdout -->

        <property name="show_sql">true</property>

 

 

格式化sql,显得更好看些

<property name="format_sql">true</property>

 

分享到:
评论

相关推荐

    餐厅管理信息系统课程设计

    利用ADO技术调用后台数据库,使用了两个ADO智能指针_ConnectionPtr和_RecordsetPtr,其中_ConnectionPtr用来连接后台SQL Server数据库,_RecordsetPtr指针用来对数据库的表中的记录集进行操作。工程使用的是基于...

    SQLPrompt_7.3.0.535

    Fix for Format SQL adding additional spaces in the middle of object names Fix for Format SQL removing space between "RETURN -1;" Support ticket 72842: Fix for visual glitch when using keyboard ...

    MYSQL,SQLSERVER,ORACLE常用的函数

    SQL中的单记录函数 1.ASCII 返回与指定的字符对应的十进制数; SQL&gt; select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE --------- --------- --------- --------- ...

    2005学生系统

    string sql = string.Format("select * from userInfo where UserloginId='{0}' and UserPass='{1}' and UserRole={2}", txt_UserloginId.Text, txt_UserPass.Text, userRole); SqlCommand com = new SqlCommand...

    Oracle RAC Standby实施手册

    SQL&gt; show parameter log_archive_format; --2. 关闭主库两各节点 SQL&gt; shutdown immediate; --3. 启动一各节点进行启用归档操作 SQL&gt; startup mount; SQL&gt; alter database ARCHIVELOG; SQL&gt; alter database open;...

    项目_网吧收费系统主程序

    string str_sql = string.Format("select cardnumber,cardpassword,cardbalance,transacttime from cardinfo where cardnumber = '{0}'", txt_ID.Text); //创建命名对象 SqlCommand cmd = new SqlCommand(str_sql...

    全国城市乡镇sql脚本

    `show_index_` int(9) DEFAULT NULL, `cid_` varchar(255) DEFAULT '' COMMENT '公司id', `city_name_` char(255) DEFAULT NULL COMMENT '城市名称', `city_id_` char(36) DEFAULT NULL COMMENT '城市id', `ct_...

    SQL21日自学通

    格式化列COLUMN HEADING FORMAT 447 报表与分类汇总449 BREAK ON449 COMPUTE450 在SQL*PLUS 中使用变量453 DEFINE 454 ACCEPT 455 NEW_VALUE457 DUAL 表458 DECODE 函数459 日期转换462 运行一系列的SQL 文件465 在...

    Oracle中查看正在运行的SQL进程脚本分享

    Oracle的show processlist 代码如下: set linesize 400; set pagesize 400; col sql_text format a100; col machine format a25; col username format a15; SELECT a.username,a.machine, b.sql_id, b.SQL_TEXT ...

    SQLPrompt_7.3.0.651(包含注册机)

    SQL Prompt can now retrieve suggestions using Azure Active Directory password authentication (UserVoice) Formatting off comment tag now applies to itself (forum post) Fix for text being moved inside ...

    Oracle数据库.pdf

    使用数据字典v$controlfile,查看当前数据库的控制文件的名称与路 径,具体如下: SQL&gt; COLUMN name FORMAT A50; SQL&gt; SELECT name FROM v$controlfile; 通过SHOW PARAMETER语句可以查看块的默认大小信息 SQL&gt; SHOW...

    微软内部资料-SQL性能优化3

    An intent lock indicates that SQL Server wants to acquire a shared (S) lock or exclusive (X) lock on some of the resources lower down in the hierarchy. For example, a shared intent lock placed at the ...

    Oracle8i_9i数据库基础

    §2.5.11 SHOW ALL(列出所有参数) 85 §2.6 格式化输出 87 §2.6.1 一般数据的格式化输出 87 §2.6.2 日期的格式化输出 88 §2.7 加标题 89 §2.8 建立简单报告 90 §2.9 输入变量 91 第三章 表及索引的定义操作 94 ...

    Oracle sqldeveloper without jdk (win+linux)

    SQL Developer uses current database NLS session settings to format date/time and numeric datatypes. If the settings are changed with the ALTER SESSION command, SQL Developer reads the new values from ...

    《深入浅出SQL》(Head First SQL)[PDF].part2

    Using the latest research in neurobiology, cognitive science, and learning theory to craft a multi-sensory SQL learning experience, Head First SQL has a visually rich format designed for the way your...

    javaSSH整合

    Java ssh+oracle整合;... &lt;prop key="hibernate.format_sql"&gt;true &lt;value&gt;com/newer/pojo/CustType.hbm.xml&lt;/value&gt; &lt;value&gt;com/newer/pojo/Customer.hbm.xml&lt;/value&gt; &lt;/bean&gt;

    《深入浅出SQL》(Head First SQL)[PDF].part1

    Using the latest research in neurobiology, cognitive science, and learning theory to craft a multi-sensory SQL learning experience, Head First SQL has a visually rich format designed for the way your...

    Hibernate开发jar包

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

    微软内部资料-SQL性能优化5

    In a nonclustered index, the leaf level contains each index key, plus a bookmark that tells SQL Server where to find the data row corresponding to the key in the index. A bookmark can take one of two ...

    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....

Global site tag (gtag.js) - Google Analytics