Sql select rows containing part of string

后端 未结 3 1431
北恋
北恋 2021-01-04 02:56

I want to write a comparation procedure (t-sql) for site seo.

I have a table with field \'url\' (nvarchar()) that contain a part of site url\'s. Ex: \'mysyte.com

3条回答
  •  耶瑟儿~
    2021-01-04 03:18

    you can use CHARINDEX in t-sql.

    select * from table where CHARINDEX(url, 'http://url.com/url?url...') > 0

提交回复
热议问题