mysql颠覆实战笔记(六)--商品系统设计(三):商品属性设计之固定属性
今天我们来讲一下商品属性
我们知道,不同类别的商品属性是不同的。
我们先建一个表prod_class_attr:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAp4AAACqCAIAAACLYNhWAAAZh0lEQVR4nO2dPZLyOhaGvZDJZwFT1YFXQDo7IFLCQkh910E4VS7yyTuf8hcR3oiIlAn8d/Rn1G5bSOJ56lbdRvgzr60jvTqSwNUdAAAACqK63+//S5h33x8AAIDMGKz9mSRYOwAAwE9J3doB4I28u4MCgDWkbu3vvj8D6SjpQc8y6NmETGUDANYeRDpKetCzDHo2IVPZAIC1B5GOkh70LIOeTchUNgC8tPauqVU7/lU33VDcqmootl62qpqPw9p3AT3LoGcTMpUNAD+w9tnBDV9/PlulmXnX1Ju4ezo9SzpKetCzDHo2IVPZALBk7a2qJlTT1JXFYPCtqptOHu04Zntr/z5/fZ2/zdLL0fj8+ZjL0XF8GEtKLsfqeFlQ9X3+Eu/7yzbR47opukBxyKTicqzMQ+YbeLzor1030a3n+/w1HT181uKFW3U3fPzPcetxXab79P0FH8/yur0Xv1rP1mj37+t4NMX38sdmMP7f3Y4iygaAzXmZtVsZukXX1L/x7wWsnsXZ9y92u9LO97F2r3HOBcfLfbJLo8ddafA+PfMNEiIMhfNt0G7I5Tj/m9mA+7/ERblvov/+DKd11ZxZPor87bgnRI/n5aRHjEjkXVkbQIt6XKHgHUz5hyP6SedjzBozrN2qGXF2rB0gU15Z+5CLL1h3q8b3zVHArxfd12TtBrtbu9Yz6i44qpy750nB5JibWvvYo4///zaSzuFNI5F2sFHWbgnzTmFM+aNp/xsPfWY9Loaxxtf5fPw6nwfTH6Yegiz1p3rkNIK4M5ejdpe/z1/aYQs6Lsfq62ucKrFvpxYAl2N/WV/n89FzSqwdIFOWrb1rlFK1ao21dO2Iuq7HrF3baLfBdjqzZ1lO2iu3n+1r7eKc/Z+GtUsr+z5/HS8LCwa/1WOc+ut86bX0xjrPiC/fREvPe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lg7lE+mDR4kmVbih8vmN+RDyMXa9W+Zpz/3BKWTaYMHSaaViOyYFCybJ78BmGTa4EGSaSUiOyYFy8baAUwybfAgybQSkR2TgmVj7QAmmTZ4kGRaiciOScGyq/v9/ieAOwAAACRAkLVvMYwAAACAJMDaAQAAigJrBwAAKAqsHQAAoCiwdgAAgKLA2gEAAIoCawcAACiK/wMgFEOx0oIgKQAAAABJRU5ErkJggg==" alt="" />
给这个表填入一些数据:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAb8AAADlCAIAAABME24AAAAgAElEQVR4nO2dTYzd1nXH2W1QoOt2nU2BLgw0GLwhhCIukGWB7gxkYTzID+wmQFc1LMdojHoxwGimYm1DhhAkcKAGEvTgjGdiEYrkNMgiSBSkU1SxJ7KoOB9KA9uKpLcRWglo2QW/zv0iLx/fJc89PD8QmPf4+Mh7/u/eP8/l5fAGK4ZhGKY7wdgFYBiG8RJ2T4ZhmHUY2T3TNB23AJ7CujE2cD1xCrunl7BujA1cT5zC7uklrBtjA9cTp9Bxz4cPH967dy9N09u3b9+5c+fevXsPHz7c1M6xYaPbKTPnz58foJB9+KO//btOy1jlhKpWK1+89Ja0jFW81nryN/90rXkZppyeFq+De164cOHZZ59taJOnTp169tlnL1y4YL/PTbnnO++88/LLL78k8vLLLy+Xy43sHxuW7pnpOHXq1N7eHnID9do98cDu6ZQO7tlqnTlf+tKX7Pe5Kfe8ePFikiRXr169evXqtWvX8hdJkly8ePHTTz/dyCE6s5xv7Rw72re9ewZ//0245O754MED/AbqBap7qokn5txzsVjAM+t7770H3y4Wi9Vq9Z0PdgcpbOfiZTdeHatgORvOPb/4xS+Oknu+ZKbdPZfzoJH5sthMdMPjnS1hRdtugqDefDkPellrz9wzyzILA13Oq9jbPzze2TJv3J3v/ejHb1y68salK7/4+Fc3fvLT/LVp+d6PfqwrH1RYKd7xzla1wfHO1nxZ/enEmrknrEtFPWo8+rr1pad7Zln2nQ92v3Lt86avH+9sNTcaYcvu9aOleC8G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GjTZjZN9Z2wt/HdM88iq6nYixRbmpEdrJKLO1oE64ChkfSFc88ey5ePs0wZMsLunkNe97Se8LrNPVsn2rSZTVNMSZW9je+euWGCtBNOwy6vrN2z+gK758C0zak5ukOhXb72cZZ9rP8IQ8XAMea+qdyzfaJNi9k0q3f6vY3vnjlwVk1QTKhJlIjzu9WnEHbPQWmZU3N0k0K6LLPfiNc6PXDPce73BH1q8/2erT137USb4mSZmoEgU89duzdc7imOBZlmcy/S6DDU6YsbDI1kAzTOqTm+T+Fc3pdVhJc+MVQM/l8jb2i6W16cLLP8VJiJHX7TIw8l/+uze663YKgY/H/u3jBNHchHze7J7ukQDDJhYJo6kI+a3ZPd0yEYZMLANHUgHzW7J7unQzDIhIFp6kA+anZPdk+HYJAJA9PUgXzU7J5+uyfPqckwjHeMbZ5287kzDMMwEuyeDMMw68DuyTAMsw7/D3vzS11vKzmrAAAAAElFTkSuQmCC" alt="" />
接下来,我们再建一个商品属性对应表 prod_attr
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAApkAAACCCAIAAACCQ0R0AAATdUlEQVR4nO2dPY7jMLZGtZDJ3wIe4EAr6PTtQBGTXohTzTocDiB0PrnzgTrqcKKKOvUL9MPLP1ll0xRJnYMGukpSyZ/ES368JGU1jyz5DwAcyhcAlENztGv7yacpyUfJBHq2QU8UCpUNcFrw8ifko2QCPdugJwqFygY4LXj5E/JRMoGebdAThUJlA5yWDS8f+1YNy09tP86bB9XMm51fB9Xo4/Dyj4CebdAThUJlA5yWXV6uLdsy8sdjUIZ7j30bxc7zaUryUTKBnm3QE4VCZQOcFr+XD6pZUX3fNg6zow+q7Ud5tOeY+F5+v14u17u99dZZn6+PuXWe4/expeTWNd1tQ9X9ehH7w9ui6PHdFFOgOGRVcesa+xB9A7ub+bvvJvr13K+X9ej5szYv3Cm7+eO/j1+P7zL9p58uuLvK6w5e/Mt6YmPcv0vX2eIn+Us1WP7316OEsgEgFht5uZODO4x9+45hb+A0Jd7GfrOdlf79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qhfqgbCMeVCOPXToFz08FL+Jp78a+9d1Zo8u2uTEBq2yrOcPLv3XMTs7s5Y+HJ5fY8vJwm7QEp3mUc/JNL7ffip51uEMpGFOtu6LU3O1pd61Op3cFlu9U8CpWezf2bbh5yGjqnLw8yjE7ObGXywqh25zXvHyOTt2w+U/+zMtzDnAoE1lV9kXpS16+51TwKlYhbt7TXL3c7PLlHBV4eUpieLkILzFe9aKXP8a+bZVacxT/yaWXy+Z03StHNnOOdigGo6rsilJ3QFQv+OjX+XLLy3edCl4ksIhsZRwXnxQzIt6NSbHWsW+tuc8JvDwlkebLlxHBVqk10uatOtmQa982TmzNX3lPrkea1t3yo32rhwDewqwqe6LUCXV9lHdhh72IbutU8BJGgmuyJgfOzJx340GyH24U5QtenpJCvysGIDWF1nCQFFqIJ5eNl+8BLwfYRaE1HCSFFuLJZfN97Hs41svtca7cx4zgxBRaw0FSaCEiOyX1ySYvB9AUWsNBUmghIjsl9cnGywE0hdZwkBRaiMhOSX2y8XIATaE1HCSFFiKyU1Kf7Ob3M74AAAAgA4Je/pneAwAAACQCLwcAACgbvBwAAKBs8HIAAICywcsBAADKBi8HAAAoG7wcAACgbPByAACAssHLAQAAygYvBwAAKBu8HAAAoGzwcgAAgLLBywEAAMoGLwcAACib/wfP7avx/pjmzQAAAABJRU5ErkJggg==" alt="" />
好了,下面我们把新增商品的流程撸一遍:
第一步,往商品主表插入数据
我们来新建一个存储过程 sp_new_prod:
BEGIN
INSERT INTO prod_main(prod_name,prod_classid) VALUES (_prod_name,_class_id); END
参数:IN _prod_name varchar(50),IN _class_id int
call一下
call sp_new_prod('测试商品001',1)
于是在主表中,我们就可以看到刚刚插入的数据
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAB4CAIAAAAL9N0oAAAX3ElEQVR4nO1dP4vcyBLXRzrwC8b6IgYHTiz0HRw5uPAGVql5yYYGRwNGwWOTzXzJYjC33KFlOUd3x4FZjgMzUb9A6lZVdbVa0mpG2ur6MbAz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1HjO2oxrQ8knlXD7JtFutZaP0aOGIMQKDOIMa0CSkl/c0ak2JqZZuZfUWsycArfj2ds2TEGIBAnXiMbbPYee5KvVlrZmej91EFmarXtlmc5tok0U0zQweEGAMQqFOOsVpXoiLfrD0xs3kSzd1xqIXYySDGAATqdGOsscOv20hFNXDfI/xUI8YABOp0Y6yWPXrW7HvdWPi5ZSHGAATqdGOsUe3N+q+UriPGAGAyiDEIwQ4BECxiDEKwQwAEixiDEOwQAMEixiAEOwRAsIgxCMEOARAsI8a+tfAdJ2rsryIA9NGtGgMAYFKIMQBAwIgxAEDA/h9b/jAADR974wAAAABJRU5ErkJggg==" alt="" />
ok,我们按照这个思路,重写刚才的存储过程
BEGIN
set @pid=0;
INSERT INTO prod_main(prod_name,prod_classid) VALUES (_prod_name,_class_id);
set @pid = LAST_INSERT_ID();
set @ss = CONCAT('insert into prod_attr select ? as prod_id,a.* from (',_attr_sql,')a') ;
PREPARE pname from @ss;
EXECUTE pname using @pid;
DEALLOCATE PREPARE pname;
END
现在这个过程,我们一次性完成插入数据,又添加属性。
上一课:mysql颠覆实战笔记(五)--商品系统设计(二):定时更新商品总点击量
下一课:mysql颠覆实战笔记(七)--白话理解事务
版权声明:笔记整理者亡命小卒热爱自由,崇尚分享。但是本笔记源自www.jtthink.com(程序员在囧途)沈逸老师的《web级mysql颠覆实战课程 》。如需转载请尊重老师劳动,保留沈逸老师署名以及课程来源地址。
mysql颠覆实战笔记(六)--商品系统设计(三):商品属性设计之固定属性的更多相关文章
- mysql颠覆实战笔记(五)--商品系统设计(二):定时更新商品总点击量
继续回到沈老师的MYSQL颠覆实战,首先回顾下上一节课的内容,请大家会看下上节课写的存储过程. 打开prod_clicklog表, 我们只要把日期(不含时分秒)的部分存在数据库中, 如果同一日期有相同 ...
- mysql颠覆实战笔记(七)--白话理解事务
今天我们学习web开发级mysql颠覆实战课程第9课没MYSQL事务(一):白话理解事务.前面有两节课第7讲:商品系统设计(四):商品属性设计之自定义属性,第8讲:商品系统设计(五):一维属性的商品价 ...
- mysql颠覆实战笔记(四)--商品系统设计(一):商品主表设计
版权声明:笔记整理者亡命小卒热爱自由,崇尚分享.但是本笔记源自www.jtthink.com(程序员在囧途)沈逸老师的<web级mysql颠覆实战课程 >.如需转载请尊重老师劳动,保留沈逸 ...
- mysql颠覆实战笔记(三)-- 用户登录(二):保存用户操作日志的方法
版权声明:笔记整理者亡命小卒热爱自由,崇尚分享.但是本笔记源自www.jtthink.com(程序员在囧途)沈逸老师的<web级mysql颠覆实战课程 >.如需转载请尊重老师劳动,保留沈逸 ...
- mysql颠覆实战笔记(一)--设计一个项目需求,灌入一万数据先
版权声明:笔记整理者亡命小卒热爱自由,崇尚分享.但是本笔记源自www.jtthink.com(程序员在囧途)沈逸老师的<web级mysql颠覆实战课程 >.如需转载请尊重老师劳动,保留沈逸 ...
- mysql颠覆实战笔记(二)-- 用户登录(一):唯一索引的妙用
版权声明:笔记整理者亡命小卒热爱自由,崇尚分享.但是本笔记源自www.jtthink.com(程序员在囧途)沈逸老师的<web级mysql颠覆实战课程 >.如需转载请尊重老师劳动,保留沈逸 ...
- mysql颠覆实战笔记(八)--mysql的自定义异常处理怎么破
这一节课,沈老师带我们了解事务的异常 什么是异常? 我们先插入一组数据: ,10.5); 这个是正常的.但是我们把插入的user_money的值故意弄错:如下 ,‘abc’); 那么我们会得到一个ER ...
- mysql的学习笔记(六)
1.字符函数 (1).CONCAT(str1,str2,...)函数,将多列信息合并输出. SELECT CATCAT('hello','mysql') as test (2).CONCAT_WS(' ...
- 【慕课网实战】Spark Streaming实时流处理项目实战笔记六之铭文升级版
铭文一级: 整合Flume和Kafka的综合使用 avro-memory-kafka.conf avro-memory-kafka.sources = avro-sourceavro-memory-k ...
随机推荐
- struts2中访问和添加Application、session以及request属性
一.访问或添加Application.session.request属性 <一>方式一 HelloWorldAction类中添加如下代码 //此方法适用于仅对Application.ses ...
- Mongoose:Schema之路
说明:本文在个人博客地址为edwardesire.com,欢迎前来品尝. Mongoose学习 这里的Mongoose当然不是图片上的萌物,它是一个MongoDB对象建模工具(object model ...
- 第二百八十五天 how can I 坚持
今天好平凡啊. 晚上给徐斌打电话说忘带钥匙了,一块吃了个饭. 回到家,什么都不想做,好消沉. 玩了几局象棋,很多东西只是玩玩,但还是会认真,认真就会输,好惨. 最近在关注万科幸福里,可是.首付付不起啊 ...
- work_6
这次的作业是阅读C++11的新特性并提出问题,作为一个大部分代码都是用C++的基本语法并没有特别关注C++一代又一代新特性的学生来说,首先我阅读了一些关于新特性的文章.为了更快的理解,我首先选择了阅读 ...
- hdu 4763 Theme Section(KMP水题)
Theme Section Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) To ...
- windows 花式装系统
目录 一.安装系统前准备 准备U盘 准备好一个制作启动盘的软件 准备系统镜像 二.接下来先制作启动盘(以微PE为例) 三.插上u盘,调BIOS(BIOS即基本输入输出系统) 四.进入PE 五.开始安装 ...
- 去除Linq to Sql 查询结果中的空格
原来的写法: Dim db = From city In DataContext1.AddressCity Where city.ProvinceID = dgvAddress(2, e.RowInd ...
- 在VB中利用Nuget包使用SQLite数据库和Linq to SQLite
上午解决了在C#中利用Nuget包使用SQLite数据库和Linq to SQLite,但是最后生成的是C#的cs类文件,对于我这熟悉VB而对C#白痴的来说怎么能行呢? 于是下午接着研究,既然生成的是 ...
- 来自JavaScript Garden摘取
1.数字类型不能用作对象,因为javascript解析器会将点号(.)解析成浮点型(as a floating point literal),比如:2.toString();会导致语法从错误,解决方法 ...
- Spring Hibernate4 整合配置文档
1 applicationContext.xml配置文档 <?xml version="1.0" encoding="UTF-8"?><bea ...