中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當前位置: 首頁 > news >正文

金華競價排名 金華企業(yè)網(wǎng)站建設線上營銷活動有哪些

金華競價排名 金華企業(yè)網(wǎng)站建設,線上營銷活動有哪些,運動網(wǎng)站開發(fā)的需求分析,家用寬帶怎樣做網(wǎng)站服務器數(shù)據(jù)庫中遇到的操作 查詢字段是json的某個值 $map[json_extract(goods, "$.brand_id")] (int)$params[brand_id]; //獲取數(shù)據(jù)庫中某個字段是json中得某個值,進行查詢,goods是表中字段,brand_id是json中要查詢的字段。數(shù)據(jù)類型一定…

數(shù)據(jù)庫中遇到的操作

  • 查詢字段是json的某個值
 $map['json_extract(goods, "$.brand_id")'] = (int)$params['brand_id']; //獲取數(shù)據(jù)庫中某個字段是json中得某個值,進行查詢,goods是表中字段,brand_id是json中要查詢的字段。數(shù)據(jù)類型一定要對應要不然查詢不出來。
  • 查詢結果進行遍歷操作:
db('product_plant')->where($map)->order('id', 'desc')->paginate($limit)->each(function ($item, $key) use ($store_id) {//代碼邏輯
}
  • 多級下拉
if (isset($params['cat']) && !empty($params['cat'])) {if (count($params['cat']) == 1) {$shop_cat_array = model('store_category')->where(['pid'=>$params['cat'][0], 'store_id'=>$this->auth->id])->column('id');$cat = model('store_category')->where('pid', 'in', $shop_cat_array)->where('store_id', $this->auth->id)->column('id');$map['shop_cat'] = ['in', $cat];}else if (count($params['cat']) == 2) {$cat = model('store_category')->where(['pid'=>$params['cat'][1], 'store_id'=>$this->auth->id])->column('id');$map['shop_cat'] = ['in', $cat];}else {$map['shop_cat'] = $params['cat'][2];}}

$field = ‘p.id’;
s q l = d b ( ′ p r o d u c t ′ ) ? > a l i a s ( ′ p ′ ) ? > f i e l d ( sql = db('product')->alias('p')->field( sql=db(product)?>alias(p)?>field(field)->where( w h e r e ) ? > u n i o n ( f u n c t i o n ( where)->union(function ( where)?>union(function(query) use ( w h e r e , where, where,field) {
q u e r y ? > n a m e ( ′ s t o r e p r o d u c t ′ ) ? > a l i a s ( ′ p ′ ) ? > f i e l d ( query->name('store_product')->alias('p')->field( query?>name(storep?roduct)?>alias(p)?>field(field)->where($where);
}, true)->buildSql();
m o d e l = D b : : t a b l e ( model = Db::table( model=Db::table(sql . ’ as a’);
$productIds = $model->column(‘id’);
$map[‘product_id’] = [‘in’, $productIds];

$this->request->domain()

 $bill_money = db('store_bill')->where(array_merge(['comein'=>1],$w))->sum('price')-db('store_bill')->where(array_merge(['comein'=>0],$w))->sum('price');
  • 查看數(shù)據(jù)庫中json字段不符合json結構的:

    SELECT *
    FROM hzqc_product_plant
    WHERE JSON_VALID(goods) = 0;

  • 不符合json結構不能使用json_container()

  • mysql相關函數(shù):json_valid()

  • php密碼設置
    $params[‘salt’] = Random::alnum();
    p a r a m s [ ′ p a s s w o r d ′ ] = m d 5 ( m d 5 ( params['password'] = md5(md5( params[password]=md5(md5(params[‘password’]) . $params[‘salt’]);

SELECT * FROM hzqc_product_plant WHERE store_id = 91000003 AND json_extract(goods, " . b r a n d i d " ) = 6074 S E L E C T ? F R O M ‘ h z q c p r o d u c t p l a n t ‘ W H E R E ‘ s t o r e i d ‘ = 91000003 A N D g o o d s ? > ′ .brand_id") = 6074 SELECT * FROM `hzqc_product_plant` WHERE `store_id` = 91000003 AND goods->' .brandi?d")=6074SELECT?FROMhzqcp?roductp?lantWHEREstorei?d=91000003ANDgoods?>.“brand_id”’ = 6074;

http://www.risenshineclean.com/news/37068.html

相關文章:

  • 如何開發(fā)一個微網(wǎng)站sem是什么工作
  • 利用高權重網(wǎng)站做關鍵詞運營和營銷是一回事嗎
  • 做外鏈網(wǎng)站優(yōu)化方案官方網(wǎng)站
  • 免費網(wǎng)站建設新技術優(yōu)化流程
  • 玉樹營銷網(wǎng)站建設十大營銷策劃公司排名
  • 網(wǎng)站規(guī)劃與建設的流程與方法 高中信息技術快手seo
  • 做一個營銷型網(wǎng)站有哪些內容百度app平臺
  • 如何做自媒體和網(wǎng)站簽約賺點擊seo關鍵詞優(yōu)化公司
  • 柳北網(wǎng)站制作移動慧生活app下載
  • 深圳四站合一網(wǎng)站建設電話電商網(wǎng)站上信息資源的特點包括
  • 如何做網(wǎng)站圖片切換鄭州網(wǎng)絡營銷與網(wǎng)站推廣
  • 動態(tài)網(wǎng)頁怎么制作長沙百度快速優(yōu)化
  • 網(wǎng)站建設需要什么基礎百度站長平臺有哪些功能
  • 網(wǎng)站建設網(wǎng)站需要什么日照高端網(wǎng)站建設
  • 建筑學院app網(wǎng)站今天國內新聞
  • 那個網(wǎng)站做外貿谷歌廣告代理公司
  • 做柱狀圖 餅狀圖的網(wǎng)站武漢網(wǎng)站競價推廣
  • 中國采招網(wǎng)沈陽seo推廣
  • 自己的網(wǎng)站如何做推廣網(wǎng)站建設網(wǎng)站推廣
  • 好的網(wǎng)站搭建公司哈爾濱網(wǎng)站優(yōu)化
  • wap建站系統(tǒng)垂直搜索引擎
  • 廊坊網(wǎng)站建設方案策劃哈爾濱優(yōu)化網(wǎng)站方法
  • 金華網(wǎng)站建設哪里好seo排名培訓學校
  • 中小型網(wǎng)站建設與管理游戲合作渠道
  • 部委網(wǎng)站建設通知西安網(wǎng)站定制開發(fā)
  • 上海做網(wǎng)站的價格百度查詢入口
  • 淘客網(wǎng)站開發(fā)教程二級域名網(wǎng)址查詢
  • 簡述電子商務的概念seo公司推薦推廣平臺
  • 企業(yè)免費網(wǎng)站系統(tǒng)下載地址seo項目經理
  • 做網(wǎng)站主頁效果圖客源引流推廣app