1. SELECT* FROM tn WHERE FN LIKE '_in%' (%省略)
- LIKE '[TJ]im%'. (TJ有一个在)
- LIKE '[^TJ]im%'. (不是T或者J开头)
- LIKE '%' + 'im' + '%' (搜索字符串)
2. ROW_Number 函数
- SELECT ROW_NUMBER() OVER (ORDER BY ProductID) AS ROWNumber, ProductNumber,
1. SELECT* FROM tn WHERE FN LIKE '_in%' (%省略)
2. ROW_Number 函数
Data Querying
1. a. 数据:CRUD ( 增删查改Post, Get, Put, Delete)
b. 集合: 子交并补
c.优化
2. SELECT...FROM...
If 200> ANY(SELECT ProductID FROM tablename)
BEGIN
SELECT 'YES"
END
ELSE
BEGIN
SELECT'NO'