- 博客(5)
- 收藏
- 关注
原创 oracle 创建固定长度的自增ID 和 当前时间
view plaincopy to clipboardprint?01.create sequence TEST_ID 02.minvalue 1 03.maxvalue 9999999 04.start with 1 05.increment by 1 06.nocache; create sequence TEST_IDminvalue 1max
2012-01-12 17:21:09 1044
原创 servlet包 sql 中拼接
1、insert into tA(a,c) (select a,'abc' as c from tB) 从一个表中查询出数据然后插入到另外一张表中。2、想给sql查出来的数据拼接一个字符串 用"||"就可以了。 3、javax.servlet.jar包是应用服务器中的jar包,不是jdk中的包。
2012-01-12 17:19:39 513
原创 查看mysql是否安装成功
可以在MYSQL COMMAND LINE CLINET 执行STATUS 命令 应该看到如下结果:Enter password: ***Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2 to server version: 5.0.15-ntType 'h
2012-01-12 17:11:14 12744 1
原创 hibernate 小记
1、User 是oracle数据库的关键字,不可以用作表名等,要重命名或者加反引号``来指定这是字符串2、hibernate开发包中的etc目录中的.properties 文件中存在所有的属性模板3、hibernate提供两种方式查询,hql语言和条件查询Criteria 4、 domain对象最好不要限制为final,因为hibernate实现懒加载的时候需要基础此类,否
2012-01-12 17:09:52 401
原创 struts2学习笔记
0、struts2是由WebWork 2 和struts1 发展而来的,结合了他们的优点。1、struts2中的Interceptor接口拦截器接口中的方法intercept方法属于AOP编程中的环绕通知2、struts2中如果自定义了拦截器,那么它的核心拦截器都将失效,所以如果既要是struts2中的核心功能核心拦截器不失效又要实现自定义拦截器能,那么就必须在struts.xml
2012-01-12 17:07:07 268
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人