ontheway365

博客园 首页 新随笔 联系 订阅 管理

2017年6月14日 #

摘要: 举例进行说明,我们现在有两个表,即商品表(products)与sales_detail(销售记录表)。我们主要是通过这两个表来对MySQL关联left join 条件on与where 条件的不同之处进行讲述。 1、数据准备 创建products表并插入数据 创建sales_detail表并插入数据 阅读全文
posted @ 2017-06-14 19:36 ontheway365 阅读(248) 评论(0) 推荐(0) 编辑

2017年6月8日 #

摘要: <!-- NOTE:internal_name_trim使用的是伪列,而不是数据库返回的数据 --><select id="listByStoreIdAndPartsNoTrimAndBrandName" resultMap="productMap"> SELECT product_id, inte 阅读全文
posted @ 2017-06-08 23:16 ontheway365 阅读(699) 评论(0) 推荐(0) 编辑