摘要: <!--在ibatis中使用安全的拼接语句,动态查询ibatis比JDBC的优势之一,安全高效说明文字在注释中--> <select id="selectAllProducts" parameterClass="Product" resultMap="ProductResult"> select id,note from Product <dynamic prepend="WHERE"> <!-- isNotNull判断参数是否存在,Integer类型 –> < 阅读全文
posted @ 2010-04-01 17:05 Horrison 阅读(401) 评论(0) 推荐(0) 编辑
摘要: --创建用户create user han identified by han default tablespaceusers Temporary TABLESPACE Temp;grant connect,resource,dba to han; //授予用户han开发人员的权利--------------------对表的操作----------------------------创建表create table classes( id number(9) not null primary key, classname varchar2(40) not null) --查询表select * 阅读全文
posted @ 2010-04-01 17:03 Horrison 阅读(357) 评论(0) 推荐(0) 编辑