第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

請(qǐng)教一個(gè)mysql三表關(guān)聯(lián)查詢的問題

請(qǐng)教一個(gè)mysql三表關(guān)聯(lián)查詢的問題

陪伴而非守候 2019-04-07 11:18:35
orderlogistics(物流信息表)orderlogistics_id:自增iduserid:用戶id,ordercode:訂單號(hào)logistics:物流公司,字符型logisticsid:物流號(hào)yunfeistatuscustomer(客戶表)customer_id:自增iduserid:用戶id,usernamenicenamepro,city,dist,addr:收貨地址,這里是4個(gè)字段,都是字符型,直接寫入的省市區(qū)縣地址的中文mobileorder(訂單表)order_id:自增idproductname:商品名稱inpricenumunitincurrencyotherexchange_ratecostoutpriceprofitordercode:訂單號(hào)userid:用戶id,customerid:自增idorderdatestatus有以上三個(gè)表,需要列出訂單列表,訂單列表所用到的字段如下:order_id,username,nicename,mobile,pro,city,dist,addr,logistics,logisticsid,status,cost,outprice,other,profit請(qǐng)問該如何寫sql查詢,sql不精,讓各位見笑了。
查看完整描述

2 回答

?
智慧大石

TA貢獻(xiàn)1946條經(jīng)驗(yàn) 獲得超3個(gè)贊

selecta.order_id,a.cost,a.outprice,a.other,a.profit,a.status,b.username,b.nicename,b.mobile,b.pro,b.city,b.dist,b.addr,c.logistics,c.logistics,fromorderaleftjoincustomerbona.customerid=b.customeridleftjoinorderlogisticsconb.userid=c.userid
                            
查看完整回答
反對(duì) 回復(fù) 2019-04-07
  • 2 回答
  • 0 關(guān)注
  • 366 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)