博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ibatas的一些实例及解释
阅读量:4315 次
发布时间:2019-06-06

本文共 2184 字,大约阅读时间需要 7 分钟。

Student.xml :
select * fromtbl_student
select * from tbl_student where id=#id#
select name,birth,score from tbl_student where name like'%$name$%'
insert intotbl_student(name,birth,score) values(#name#,#birth#,#score#)
select @@identity as inserted
delete from tbl_student where id=#id#
update tbl_student setname=#name#,birth=#birth#,score=#score# where id=#id#

  

insert into user_lottery_info(gmt_create,gmt_modified,user_id,activity_id,ump_activity_id,win,message,lottery_time,order_id) values(now(),now(),#userId#,#activityId#,#umpActivityId#,#win#,#message#,now(),#orderId#)
select LAST_INSERT_ID()
update user_lottery_info set win = #win#,message = #message#,gmt_modified=now() where order_id=#orderId#

  这里面有sql语句有关键词select,insert等,类型比较多

转载于:https://www.cnblogs.com/wzyxidian/p/5583418.html

你可能感兴趣的文章
对其他组的评价
查看>>
MVC设计模式
查看>>
Grunt 实战
查看>>
如何修改WAMP中mysql默认空密码
查看>>
[Android]做android蛮有用的一个技巧
查看>>
Swift - defer关键字(推迟执行)
查看>>
LintCode "Coins in a Line"
查看>>
Windows 批处理bat程序设计简明教程
查看>>
Selenium之前世今生
查看>>
High Five Lintcode
查看>>
【linux就该这么学】-03
查看>>
文件资源下载到本地后如何调用
查看>>
K2BPM怎么让金融数据更有意义?
查看>>
AndroidManifest Ambiguity方案原理及代码
查看>>
目前的小幸福。
查看>>
MSSQL2008 常用sql语句
查看>>
图片里的文字转换成word
查看>>
远程多台服务器备份数据方案
查看>>
Linux与Windows协同工作
查看>>
After 66 days of writing
查看>>