簡體   English   中英

是不是可以在mysql中從列中不包含某些內容的表中選擇列?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM