mysql 中的 not like 另一種簡化方法。
第一種 not like 方法
select * from table where `zongbu` not like ‘%北京%‘ and `zongbu` not like ‘%上海%‘ and `zongbu` not like ‘%深圳%‘ and `zongbu` not like ‘天津‘ and `zongbu` not like ‘香港‘ and `zongbu` not like ‘沈陽‘
第二種 not like 方法
SELECT * FROM table WHERE zongbu NOT REGEXP ‘北京|上海|深圳|天津|香港|沈陽‘;
mysql 中的 not like 另一種簡化方法。
相關推薦
mysql 中的 not like 另一種簡化方法。
ont pan 簡化 regex regexp from sel span rom 第一種 not like 方法 select * from table where `zongbu` not like ‘%北京%‘ and `zongbu` not like ‘%上海%‘
java中NIO程式設計另一種實現超實用
除了普通的Socket與ServerSocket實現的阻塞式通訊外,Java提供了非阻塞式通訊的NIO API。先看一下NIO的實現原理。 從圖中可以看出,伺服器上所有Channel(包括ServerSocketChannel和SocketCha
CCS5.5 中Image Analyzer的一種使用方法
color .cn nes style 5.5 調試 pixel 參數 技術 摘要:在DSP圖像處理調試過程中,經常會用到實時圖像提取。用CCS讀取DSP芯片中的數據,然後通過Image Analyzer顯示。在CCS3.3設置方法相對比較簡單。但是在CCS5.5中過程比較
php生成excel的另一種簡單方法
.com com span 來看 nbsp pan blog table content 之前我用table的方式寫過excel,還用php-excel這個類庫寫過excel。今天,我再向大家推薦一個超級簡單的寫excel的方法。 代碼: $xstr = "問題id\t問
函數參數太多的一種簡化方法
work 職責 targe hub git img png 原則 函數參數 我們假設一下,我們有一個方法,擁有多達 20 多個參數,如: 這種情況下,我們可以想象到後續維護時候的痛苦,尤其是,需要增加或者刪除參數的時候。 今天看 Redis 的 Queue 源代碼的時
Android 快速檢視SH1和MD5的另一種便捷方法
@echo off set keyPath="%1" "%JAVA_HOME%\bin\keytool" -list -v -keystore %keyPath% pause 使用方法:複製此段程式碼,新建文字檔案並貼上到這裡,檔名字尾改為.bat,把你的簽名檔案拖動到剛剛新建的那個.bat檔案
pytroch用自定義的tensor初始化nn.sequential中linear或者conv層的一種簡單方法。
話不多說,上程式碼,上面寫的很清楚。 import torch.nn as nn import torch net= nn.Sequential( nn.Linear(1024, 512), nn.ReLU(inplace=True), nn.Linear(512,
VS程式設計,提示【以下檔案中的行尾不一致。是否將行尾標準化?】的一種解決方法。
原因分析: 可能是寫程式碼的時候行尾的標識可能不一樣造成的。預設情況下是坐對行尾進行檢查。 解決辦法有兩種: 去掉去行尾的檢查,或者修改行尾的內容為統一的一種。 方法1:去掉行尾檢查的配置: 在選項裡->環境->文件中有一個"載入時
Mysql中字串處理的幾種處理方法concat、concat_ws、group_concat
Mysql中字串處理的幾種處理方法concat、concat_ws、group_concat以下詳情: 1.MySQL中concat函式 使用方法: CONCAT(str1,str2,…) 返回結果為連線引數產生的字串。
Sticky Header的另一種實現方法
使用Sticky Header的list單個item一般情況下使用的資料結構是 {data:"what's inside", category:"section name"} 這樣儲存其實是浪費了很多的空間,因為category的名字被儲存的多次。在移動環境
Android開發:“R cannot be resolved to a variable”的另一種解決方法
今天開發中遇到了“R cannot be resolved to a variable”這個問題,上網搜了下,基本都說是clean下工程,或者重新匯入,或者重新整理工程就可以解決。以上方法我試了都沒能解決問題,我的R.java是生成了的,沒什麼問題。 最後才發現,原來原因是
requestAnimationFrame,Web中寫動畫的另一種選擇
畫的 hat hub settime github 激活 time() inpu on() HTML5/CSS3時代,我們要在web裏做動畫選擇其實已經很多了: 你可以用CSS3的animattion+keyframes; 你也可以用css3的transitio
二叉樹的前序、中序、後序三種中的兩種推另一種
關於二叉樹: 二叉樹之由 中序、後序推前序: char s1[100], s2[100], ans[100]; int cnt; /*以上為全域性變數*/ void make(int len, char *s1, char *s2) // 中序、後序 推前序 s1中序s2後序 {
jdbc在連線mysql資料庫的時候出現一下問題的時候的解決另一種方法
問題語句:Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any
ajax在老的瀏覽器中有相容問題,可以通過另一種方式代替
var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObjet('Microsoft.XMLHTTP')
有關於【該檔案的字元編碼需要在傳輸協議層宣告,或者在檔案中加入一個 BOM(位元組順序標記)】的另一種解決辦法
昨天測試一個介面的時候發現一個異常,瀏覽器訪問一個controller,然後帶了一個JSON格式的引數,然後瀏覽器返回400錯誤,除錯發現下面的錯誤資訊: 純文字檔案的字元編碼未宣告。如果該檔案包含 US-ASCII 範圍之外的字元,該檔案將在某些瀏覽器配置中呈現為亂碼。該
解析SQL語句中INSERT語句的另一種寫法
substr(hbs_bh,1,4)=’<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />5400’,優化處理:hbs_bh like ‘5400%’ trunc(sk_rq)=
MySQL約束中最好玩的一種,沒有之一
顧名思義,約束就是限制。 MySQL中常用的約束有很多的,比如主鍵約束、非空約束、自增約束等等,但我一直覺得外來鍵約束才是其中最好玩的,接下來我們便來聊聊說它是最好玩的原因。 一、外來鍵簡介 (支援資料引擎為InnoDB) 如果公共關鍵字在一個關係中是主關鍵字,那麼這個公共關鍵字被
ES6 中 class類 是另一種寫建構函式的方法
//類的使用 class Coder{ name(val){ document.write(val+'<br>') } } let fun= new Code
查詢的資料插入到另一張表中,分為兩種情況,一種是目標表不存在,另一種是目標表存在。
情況一(目標表不存在,建立表名為t1的表,將person表中全部資料插入): createtablet1 asselect* fromperson;情況二(目標表t1存在,將per