What will be the most efficient way to check the numbers in a field that will contain several letters? I would like to do this if a where clause is possible.
The data looks something like this:
3833N4323 32N907654 5W5840904
Checking at least one number in a field (fixed):
WHERE PATINDEX('%[0-9]%', field) != 0
Checking only the numbers in the field:
WHERE ISNUMERIC(field) = 1
A simple LIKE to find any number would be enough ...
...WHERE LIKE '%[0-9]%'
select ISNUMERIC(data)
Source: https://habr.com/ru/post/1728106/More articles:Is it possible to use an exception with a database query? - phpПолучение имени учетной записи Windows клиента, обращающегося к отчету ssrs - reporting-servicesHierarchical filtering in a relational database - databaselinux training drivers - linuxWhat if JavaScript has different input arrays? - javascriptHow to ensure security in the software is very simple? - securityThe notifyIcon system tray will not accept a left-click event - c #Поддержка нескольких библиотек JavaScript в одном script - javascriptFinding the rightmost cell in an Excel document in .Net - c #ebXML Message Service Handler for .NET ...? - c #All Articles