ITeye博客

Using Ibatis 1

zerostar88 · 2009-06-21 21:19 · SQL · 企业架构 · Apache · SQL · XML · iBATIS · Markdown

1.mapping file: site.xml [code="xml"] Select SITEID,ITEMNAME,ITEMVALUE from siteConfig update siteConfig set ITEMVALUE=#itemvalue# where SITEID = #siteid# and ITEMNAME=#itemname# insert into siteConfig(SITEID,ITEMNAME,ITEMVALUE) values(#siteid#,#itemname#,#itemvalue#) insert into siteConfig(ITEMNAME,ITEMVALUE) values(#itemname#,#itemvalue#) insert into siteConfig(SITEID,ITEMNAME,ITEMVALUE) values(#siteID#,#itemName#,#itemValue#) insert into siteConfig(SITEID,ITEMNAME,ITEMVALUE) values(?,?,?) delete from siteConfig where siteID = #siteid# [/code] 2. employee.xml [code="xml"] Select * from Employee [/code]

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。