zoukankan      html  css  js  c++  java
  • shopex 小知识

    产品链接: http://www.……/product-172.html

    中间的数字代表  sdb_goods 表中 的 goods_id  ... 表示数据库里的产品 id。

    分类链接: http://www.……/gallery-1-grid.html

    中间的数字代表  sdb_goods_cat 表中 的 cat_id 。。。表示数据库中 产品分类的 id 。。。

    产品表相关:

    sdb_goods 产品主表

    sdb_product 产品属性表。

    sdb_gimages 产品图片表

    sdb_goods_cat 产品分类表、。

    sdb_goods_lv_price   产品会员价格表。

    规格属性表:

    sdb_specification 规格名称表。

    sdb_spec_values 规格值表。

    添加gimages
    insert into sdb_gimages(goods_id,is_remote,source,orderby,src_size_width,src_size_height,small,big,thumbnail,up_time)
    select goods_id,"true","N",0,"100","100",image_file,image_file,image_file,UNIX_TIMESTAMP(NOW()) From sdb_goods;

    update sdb_goods g1,sdb_gimages g2 set image_default = g2.gimage_id where g1.goods_id = g2.goods_id;

    修改价格
    update sdb_goods set price =1950 where goods_id in (1734,1730);
    update sdb_goods_lv_price set price =1950 where goods_id in (1734,1730);
    update sdb_products set price =1950 where goods_id in (1734,1730);

  • 相关阅读:
    动态表格
    Palindrome Number
    String to Integer (atoi) ???
    Reverse Integer
    Two Sum
    Path Sum
    Minimum Depth of Binary Tree
    Plus One
    Maximum Depth of Binary Tree
    Symmetric Tree
  • 原文地址:https://www.cnblogs.com/ajk4/p/6003154.html
Copyright © 2011-2022 走看看