Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 查找具有2个或更多连续数字字符(SQL)的值_Sql Server - Fatal编程技术网

Sql server 查找具有2个或更多连续数字字符(SQL)的值

Sql server 查找具有2个或更多连续数字字符(SQL)的值,sql-server,Sql Server,我有一列值,这些值有时是连续的数字,如何获得所有2+连续数字字符的值?例如: value ------- car1339 foo3bar9 there10yes hellothere SQL语句将是什么来获取以下内容 car1339 there10yes SELECT * FROM Table1 WHERE value LIKE '%[0-9][0-9]%' ; SELECT * FROM Table1 WHERE value LIKE '%[0-9][0-9]%' ; ... 其中

我有一列值,这些值有时是连续的数字,如何获得所有2+连续数字字符的值?例如:

value
-------
car1339
foo3bar9
there10yes
hellothere
SQL语句将是什么来获取以下内容

car1339
there10yes

SELECT *
FROM Table1
WHERE value LIKE '%[0-9][0-9]%' ;

SELECT *
FROM Table1
WHERE value LIKE '%[0-9][0-9]%' ;

... 其中的值“%[0-9][0-9]%”。。。其中值“%[0-9][0-9]”