摘要:delimiter //create procedure select_all()beginselect * from t_user;end//call select_all();#删除存储过程drop procedure select_all;#创建存储过程delimiter //create procedure select_all(user_name varchar(30))beginselect * from t_user where t_user.user_name = user_name;end//delimiter ;#调用存储过程call select_all('tes
阅读全文
摘要:【Hibernate总结系列】....hbm.xml配置(转)转自“http://zhw2527.iteye.com/blog/516038”在Hibernate中,各表的映射文件….hbm.xml可以通过工具生成,例如在使用MyEclipse开发时,它提供了自动生成映射文件的工具。本节简单的讲述一下这些配置文件的配置。 配置文件的基本结构如下: …… 1. 主键(id) Hibernate的主键生成策略有如下几种:1) assigned主键由外部程序负责生成,在 save() 之前指定。2) hilo通过hi/lo 算法实现的主键生成机制,需要额外的数据库表或字段提供高位值来源。3) s..
阅读全文
摘要:转自“http://hi.baidu.com/ailoveai5521/item/91cfb43ce839fbc71a96964c”php5.5 + apache2.4 安装配置php5.5 做了大量的更新,在与apache搭配的时候如何选择也很有讲究,这里我们以64位 php5.6 和 Apache2.4为例介绍如何配置。工具/原料Win7/8 64位php5.5.6 6位Apache2.4 64位1 系统环境与软件1php5.5.6 下载链接:http://windows.php.net/download/#php-5.5推荐 V11 x64,也就是64bit的。2apache2.4,下载
阅读全文