题目:

查询Northwind数据库中orders表的ShipCountry列以B或C或D或F开始且第三个字符为"a"的OrderID、CustomerID和ShipCountry的信息。

 

SQL查询代码:

USE Northwind
GO
SELECT ShipCountry,OrderID,CustomerID
FROM orders
WHERE ShipCountry LIKE '[BCDF]_a%'


//效果截图:

 


本文转载:CSDN博客