freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

sql基礎(chǔ)知識(shí)培訓(xùn)ppt課件-文庫吧資料

2024-10-22 23:47本頁面
  

【正文】 iscounts where discount in (5,) 不僅語句更短了,而且更容易閱讀, in也可用于字符類型的字段。 ?比較操作符 (in) in可以簡化你已經(jīng)學(xué)過的一些查詢,或者說你不會(huì)用in也沒關(guān)系,用前面學(xué)過的知識(shí)可以滿足你的要求。 ?比較操作符 (或 !=) 不等于可以這樣寫: select * from discounts where discount 還可以這樣寫: select * from discounts where discount != 字符也可以不等于: select * from discounts where discounttype 39。 ?比較操作符 (和 =) 小于號(hào)像這樣工作: select * from discounts where discount 如果要包括 : select * from discounts where discount = 字符也可以比較: select * from discounts where discounttype = 39。 ?比較操作符 (和 =) 大于號(hào)像這樣工作: select * from discounts where discount 5 如果要包括 5: select * from discounts where discount = 5 字符也可以比較: select * from discounts where discounttype = 39。 ? 比較操作符 (=) 我們?cè)缇陀眠^等號(hào)了: select * from discounts where discount = 5 上面字段 discount的數(shù)據(jù)類型是數(shù)字型,對(duì)字符串類型的字段記得加上單引號(hào): select * from discounts where discounttype = 39。 ? Is null 操作符 我們來找出一列中值為 NULL的記錄: select * from discounts where lowqty is null 執(zhí)行的不錯(cuò),現(xiàn)在如果用等號(hào)代替 is null: select * from discounts where lowqty = null 會(huì)怎樣呢?試試看吧,什么也沒有,因?yàn)?lowqty = null 的比較結(jié)果是 FALSE。 如果數(shù)據(jù)出現(xiàn)空值,則邏輯運(yùn)算符和比較運(yùn)算符有可能返回 TRUE 或 FALSE 以外的第三種結(jié)果 UNKNOWN。 比較操作符比較兩個(gè)表達(dá)式并返回如下三個(gè)值之一, TRUE, FALSE或 NULL。 我們先來改變一列數(shù)的符號(hào),鍵入: select discounttype,stor_id,lowqty, highqty, discount from discounts 某列減去一個(gè)常數(shù) : select discounttype,stor_id,lowqty, highqty, discount3 from discounts 用一列減去另一列,鍵入: select discounttype,stor_id,lowqty, highqty, discount 舊折扣 , discount+4 新折扣 , discount+4discount 折扣差 from discounts ? 算術(shù)操作符 (/) 除號(hào)只有一種用法:某列除以常數(shù)或者兩列相除 select discounttype,stor_id, lowqty, highqty, discount/3 from discounts 或者: select discounttype,stor_id,lowqty, highqty, discount 舊折扣 , discount+4 新折扣 , (discount+4)/discount 折扣比 from discounts ? 算術(shù)操作符 (*) 乘號(hào)也只有一種用法:某列乘以常數(shù)或者兩列相乘 select discounttype,stor_id, lowqty, highqty, discount*3 from discounts 或者: select discounttype,stor_id,lowqty, highqty, discount 舊折扣 , discount+4 新折扣 , (discount+4)*discount 折扣乘 from discounts ? 算術(shù)操作符 (%) 模運(yùn)算返回除法操作的余數(shù): select discounttype,stor_id,lowqty
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1