[英]is it possbile in mysql to select column from table where column doesnt contain something?
如果column1有1 2 3而column2有1.2 3 4.1
SELECT column1, column2
FROM table
WHERE column2 (doesn't contain ".");
那可能嗎 ? 它的翻譯是什么?
我不希望輸出顯示在column2中具有DOT的行
所以輸出只有2,3
謝謝 !!
SELECT column1, column2 FROM table WHERE column2 NOT LIKE '%.%'
SELECT column1,column2 FROM table WHERE column2 NOT LIKE '%yourstring%';
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.