当前位置: 首页 > news >正文

在线设计平台网站10大营销理论

在线设计平台网站,10大营销理论,天津工程建设协会网站,网页图片分辨率多少合适if标签与where标签 if标签 test如果为true就会拼接查询条件#xff0c;否则不会 当没有使用Param#xff0c;test出现arg0/param1当使用Param#xff0c;test为Param指定的值当使用Pojo#xff0c;test为对象的属性名 select * from car where if testname!n…if标签与where标签 if标签 test如果为true就会拼接查询条件否则不会 当没有使用Paramtest出现arg0/param1当使用Paramtest为Param指定的值当使用Pojotest为对象的属性名 select * from car where if testname!null || name! name like concat(%,${name},%) /if if testprice!null || price! and price#{price} /if ...注意日期不能判断为空字符串 如何所有条件都不满足上述代码会报错 解决 如果用 where 11 后面判断必须加and select * from car where 11 if testname!null || name! and name like concat(%,${name},%) /if if testprice!null || price! and price#{price} /if ...where标签 所有条件都为空时where子句不会生成自动去掉前面多余的andor select * from car whereif testname!null || name! name like concat(%,${name},%)/ifif testprice!null || price! and price#{price}/if /where ...trim标签 prefix在标签前面动态的添加属性值suffix在标签后面动态的添加属性值suffixOverrides去除标签内容后面中指定的属性值prefixOverrides去除标签内容前面中指定的属性值 select * from car trim prefixwhere suffixOverridesand | or prefixOverrides suffixif testname!null || name! name like concat(%,${name},%)/ifif testprice!null || price! and price#{price}/if /trimset标签 主要用在update标签中只会提交不为空的条件可以动态去除语句中多余的 update car setif testname!null || name! name#{name} , /ifif testprice!null || price! price#{price} ,/if /set where id#{id}choose when otherwise标签 一般在多条件中只执行某一个条件查询 用法类似与 if else if else selecr * from car wherechoosewhen testname!null || name! name#{name} /whenwhen testprice!null || price! price#{price} /whenotherwiseid#{id} otherwise/choose where因为只会满足一种查询条件所有不需要加and forEach标签 collection为循环列表item为循环元素separator为循环元素之间的分隔符open为标签前面加属性值close为标签后面加属性值 批量删除 delete from car where id in(foreach collectionids itemitem separator,#{item}/foreach )delete from car where id inforeach collectionids itemitem open( separator, close)#{item}/foreachdelete from car where foreach collectionids itemitem separatoror id#{item}/foreach批量插入 insert into car( name, price) valuesforeach collectionlist itemitem separator,(#{item.name},#{item.price})/foreachsql与include标签 主要用于字段的封装和复用 sql idCarSqlid,car_num as carNum,brand,guide_price as guidePrice,produce_time as produceTime,car_type as carType /sqlselect idselectAll resultTypecom.example.webapplication.pojo.Carselectinclude refidCarSql/includefrom car /select
http://www.dnsts.com.cn/news/117494.html

相关文章:

  • 网站访客记录 是后台做吗暴雪代理最新消息
  • 建设部执业资格注册中心网站wordpress后台文章排序
  • 网站建设与代运营产品介绍连云港营销型网站建设
  • 宿迁网站制作公司宿迁网站建设报价
  • 平原网站建设电话想要找个网站做环评公示
  • 帮别人做网站赚钱6tk后缀网站是什么网站
  • 番禺做网站价格如何做新闻自动采集网站
  • Wordpress自建外贸网站公司logo在线制作 免费
  • 苏州知名高端网站建设网络公司免费ai智能写作一键生成
  • 大型网站设计公司网站建设大约需要多少钱
  • 给别人做网站如何自己创建网页
  • 南宁网站建设教学取消网站的通知
  • wordpress站点标题字数做淘宝客网站需要什么要求
  • 摄影网站建设的论文2345导网址导航下载
  • 安阳哪个公司做网站好dw公司网页制作
  • 网站空间需要续费百度做网站效果怎么样
  • 网站企业优化菏泽建设集团
  • 12389举报网站建设项目太原微商网站建设
  • 网站开发实用技术第2版文档如何在电子商务化平台上做企业网站推广
  • 大连建设局网站设计师推荐
  • 空间服务 网站被黑东莞有限公司seo
  • 网站建设 技术 哪些内容网站怎么做排名呢
  • 东莞网站推广行者seo08wordpress选择php
  • 泉山徐州网站开发印度vps
  • 经典网站设计案例微信app下载链接
  • 旅游网站开发内容网站广告链接怎么做
  • wordpress 站内信插件吉林省建设工程造价网站
  • wordpress做小说站管理咨询是做什么的
  • vuejs做视频网站设计竞价推广托管公司价格
  • 个人做跨境电商网站flashfxp链接网站