sql——通配查詢
2023-06-08 00:06 作者:waiter_game | 我要投稿

--------------多字符通配查詢%
select 查詢名 from dbo.商品清單
where 查詢名 like '%感冒%'
select 查詢名 from dbo.商品清單
where 查詢名 like '%感冒%廣西半宙%'

--------------單字符通配查詢_
select 查詢名 from dbo.商品清單
where 查詢名 like '%感冒%廣西萬__藥業(yè)%'

--------------單字符包含[%abc%]

--------------單字符不包含[^abc%]
select 查詢名 from dbo.商品清單
where 查詢名 like '[^貴昆]%'

標(biāo)簽: