0
SELECT ProductNumber, Name, ListPrice
FROM SalesLT.Product
WHERE ProductNumber LIKE 'BK-[^R]%-[0-9][0-9]';'BK-M47B-38'
我想要的產品是:start with 'BK-' followed by any character other than 'R', and ends with a '-' followed by any two numerals
。 以上是ms-sql
查詢,我想這個查詢的myssql版本 productNumber是象下面這樣:在mysql中使用正則表達式的Mysql查詢
'BK-M47B-40'
'BK-M82B-44'
'FR-R38B-60'
'ST-9828'