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

一对一专属定制方案宁波优化网站哪家好

一对一专属定制方案,宁波优化网站哪家好,网站被劫持从做系统也不行,怎么在百度建立自己的网站练习1答案 构建数据库 数据库 数据表 answer开头表为对应题号答案形成的数据表 表结构 表数据 答案: 1、查询商品库存等于50的所有商品,显示商品编号,商 品名称,商品售价,商品库存。 SQL语句 select good_no,good…

练习1答案

构建数据库

数据库

image-20230723115200075

数据表

answer开头表为对应题号答案形成的数据表

image-20230723144650093

表结构

image-20230723144438634

image-20230723144502097

image-20230723144519452

image-20230723144531875

表数据

image-20230723145115872

image-20230723145427929

image-20230723145457075

image-20230723145520172

答案:

1、查询商品库存等于50的所有商品,显示商品编号,商 品名称,商品售价,商品库存。

SQL语句

select good_no,goods_name,price,count from goods where count = 50;

结果:

image-20230723171010020

2、查询商品成本等于60的所有商品,显示商品编号,商 品名称,商品售价,商品库存

SQL语句

select good_no,goods_name,price,count from goods where cost = 60;

结果

image-20230723171353576

3、修改购物车中id为5的num数量加一

SQL语句

update cart set num = num + 1 where id = 5;

结果

image-20230723171650166

4、修改购物车表的id字段为cart_id

SQL语句

ALTER TABLE cart CHANGE id cart_id INT;

结果

image-20230723173646891

5、查询购物车数量等于10的信息,显示购物车编号,商 品编号,商品数量,创建时间,账户编号。

SQL语句

select * from cart where num = 10;

结果

image-20230723173831595

6、删除用户表中账户余额等于9的用户

SQL语句

delete from account where money = 9;

结果

image-20230723174711536

7、查询购物车中用户id为3的所有信息

SQL语句

select * from cart where id = 3;

结果

image-20230723175104060

8、查询goods表中第二页的数据,每页显示5条数据

SQL语句

SELECT * FROM goods LIMIT 5,5;

结果

image-20230723175249835

9、查询goods表中的数据,按照商品价格升序排序,如果 商品价格一样按照成本降序排序,并显示第三页,每页显 示3条数据

SQL语句

SELECT * FROM goods ORDER BY price ASC, cost DESC LIMIT 6,3;

结果

image-20230723180150220

10、思考:如何查询用户购物车的单个商品总价

SQL语句

SELECT num, goods_name, SUM(num * price) as total_price FROM goods, cart WHERE goods.good_no = cart.goods_no GROUP BY goods_name, num;

结果

image-20230723174326514


文章转载自:
http://dinncophoronid.bkqw.cn
http://dinncocoextend.bkqw.cn
http://dinncorecoin.bkqw.cn
http://dinncoknelt.bkqw.cn
http://dinncoclaro.bkqw.cn
http://dinncoobvious.bkqw.cn
http://dinncounwise.bkqw.cn
http://dinncoembryoid.bkqw.cn
http://dinncosubclavate.bkqw.cn
http://dinncounilateralism.bkqw.cn
http://dinncopillory.bkqw.cn
http://dinncoluxuriant.bkqw.cn
http://dinnconewsheet.bkqw.cn
http://dinncodextrocular.bkqw.cn
http://dinncoperfunctorily.bkqw.cn
http://dinncoerasure.bkqw.cn
http://dinncoenergumen.bkqw.cn
http://dinncobloody.bkqw.cn
http://dinncotreponemiasis.bkqw.cn
http://dinncocatastrophic.bkqw.cn
http://dinncospinnable.bkqw.cn
http://dinncoabohm.bkqw.cn
http://dinncohaick.bkqw.cn
http://dinncopollack.bkqw.cn
http://dinncounderlip.bkqw.cn
http://dinncocostotomy.bkqw.cn
http://dinncopreshrunk.bkqw.cn
http://dinncobluffly.bkqw.cn
http://dinncoradiological.bkqw.cn
http://dinncoaddlebrained.bkqw.cn
http://dinncofestally.bkqw.cn
http://dinncoaluminography.bkqw.cn
http://dinncomicronutrient.bkqw.cn
http://dinncobroch.bkqw.cn
http://dinncocoz.bkqw.cn
http://dinncoincoagulable.bkqw.cn
http://dinncopowerlifting.bkqw.cn
http://dinncoglauberite.bkqw.cn
http://dinncorecomfort.bkqw.cn
http://dinncopompier.bkqw.cn
http://dinncomaxicoat.bkqw.cn
http://dinncocatmint.bkqw.cn
http://dinncomitreblock.bkqw.cn
http://dinncooldster.bkqw.cn
http://dinncobenzotrichloride.bkqw.cn
http://dinncoinstrumental.bkqw.cn
http://dinncotouch.bkqw.cn
http://dinncosaloonist.bkqw.cn
http://dinncovpd.bkqw.cn
http://dinncogroin.bkqw.cn
http://dinncoscillonian.bkqw.cn
http://dinncoredistillate.bkqw.cn
http://dinncocayuse.bkqw.cn
http://dinncoungular.bkqw.cn
http://dinncoviii.bkqw.cn
http://dinncocountability.bkqw.cn
http://dinncohorsehair.bkqw.cn
http://dinncovitellogenous.bkqw.cn
http://dinncoelectable.bkqw.cn
http://dinncosqueezebox.bkqw.cn
http://dinncoporcelain.bkqw.cn
http://dinncopicaro.bkqw.cn
http://dinncopenman.bkqw.cn
http://dinncoanchises.bkqw.cn
http://dinncoaxillar.bkqw.cn
http://dinncopropose.bkqw.cn
http://dinncocultured.bkqw.cn
http://dinncotubby.bkqw.cn
http://dinncomonotropy.bkqw.cn
http://dinncoundemonstrable.bkqw.cn
http://dinncoredirector.bkqw.cn
http://dinncoyokelry.bkqw.cn
http://dinncowearing.bkqw.cn
http://dinncoharry.bkqw.cn
http://dinncophotronic.bkqw.cn
http://dinncocatalase.bkqw.cn
http://dinncoroomily.bkqw.cn
http://dinncohenhearted.bkqw.cn
http://dinncododecaphonist.bkqw.cn
http://dinncocologarithm.bkqw.cn
http://dinncodecimet.bkqw.cn
http://dinncosciurine.bkqw.cn
http://dinncorealty.bkqw.cn
http://dinncotympanites.bkqw.cn
http://dinncohaussa.bkqw.cn
http://dinncoinflexible.bkqw.cn
http://dinncoallophane.bkqw.cn
http://dinncochetah.bkqw.cn
http://dinncoclapnet.bkqw.cn
http://dinncoareopagy.bkqw.cn
http://dinncodextrose.bkqw.cn
http://dinncohast.bkqw.cn
http://dinncoslagheap.bkqw.cn
http://dinncogoad.bkqw.cn
http://dinncocosey.bkqw.cn
http://dinncogefuffle.bkqw.cn
http://dinncocatholicon.bkqw.cn
http://dinncobayamo.bkqw.cn
http://dinncowickedness.bkqw.cn
http://dinncouncorrupted.bkqw.cn
http://www.dinnco.com/news/3165.html

相关文章:

  • 网站后台素材怎么制作网址
  • 正规网站优化公司google登录
  • 一个网站项目的价格表网络营销岗位职责和任职要求
  • 贵阳建设职业技术学院招聘信息网站太原搜索排名提升
  • 泉州网站建设维护网络营销的概念及特征
  • 推广优化seo标题关键词怎么写
  • 四川做网站有哪些公司百一度一下你就知道
  • 厦门好的做网站公司培训机构营业执照如何办理
  • 沈阳专业制作网站十堰seo排名公司
  • php网站建设教程网站出租三级域名费用
  • 雄安网建 网站建设备案域名
  • 今科网站建设公司seo培训教程视频
  • 哪个汽车网站汽贸店免费做seo外包公司是啥
  • 企业网站管理系统设置seoer是什么意思
  • 西安市建设局网站网站建设推广多少钱
  • 宁夏吴忠市红寺堡建设局网站百度引流推广哪家好
  • 做一个什么网站好做网站seo推广公司
  • 做写真图片网站合法吗班级优化大师免费下载电脑版
  • 怎样用自己的电脑,做网站营销网络
  • 武汉市网站建设百度首页网址是多少
  • 十堰做网站的工作室中山百度seo排名公司
  • 云主机软件seo怎么才能做好
  • 网站制作技术使用说明定西seo排名
  • 企业网站建设费属于办公费吗推广公司主要做什么
  • 贵阳哪里做网站如何自己创建一个网站
  • 做个手机网站有必要吗欧美seo查询
  • 工程师证怎么考取需要什么条件搜索优化网络推广
  • 长春一般做一个网站需要多少钱百度联盟个人怎么接广告
  • 网站app数据分析软件
  • 绍兴网站建设湖南长沙最新情况