如何在SQL Server中使用正则表达式?

是否有可能进行使用正则表达式功能集的高效查询.我的表格中的数据格式不正确,EX:-In Title colum:Cable180⓬-”To90â“—串行ATA Cable和Id列123234数据采用指数格式,可以在sqlserver2008中使用正则表达式进行查询.

解决方法

您需要使用以下内容.通常需要三者的组合:

> patindex
> charindex
> substring

回复上述评论时,如果发现案例,则patindex不应为0. patindex找到指定模式的起始位置,因此如果patindex找到大小写,它应返回一个整数> 0.

编辑:

此外,len(字符串)和反向(字符串)在特定场合派上用场.

相关文章

SELECT a.*,b.dp_name,c.pa_name,fm_name=(CASE WHEN a.fm_n...
if not exists(select name from syscolumns where name=&am...
select a.*,pano=a.pa_no,b.pa_name,f.dp_name,e.fw_state_n...
要在 SQL Server 2019 中设置定时自动重启,可以使用 Window...
您收到的错误消息表明数据库 'EastRiver' 的...
首先我需要查询出需要使用SQL Server Profiler跟踪的数据库标...