简体   繁体   English

获取没有特定数字的电话号码列表

[英]Get list of phone numbers without particular digit

I want to get a list of numbers from a table with a particular digit not included in it. 我想从表格中获取数字列表,其中未包含特定数字。

For example, I have the following phone numbers: 例如,我有以下电话号码:

555-1234
555-2468
555-3690
555-5050
555-6789
555-7777

How can I get back the list of phone numbers which do not have 6 in it? 我如何找回没有6的电话号码列表?

假设列名是电话,表名是Contact,

SELECT phone FROM Contact WHERE phone NOT LIKE '%6%';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM