SELECT * FROM visit_history OFFSET 2 ROWS FETCH NEXT 50 ROWS ONLY
1.2.2 最多行数
SELECT * FROM visit_history FETCH FIRST 300 ROWS ONLY
1.2.3 首行
SELECT * FROM visit_history FETCH FIRST ROW ONLY
1.2.4 查询条件
SELECT * FROM visit_history WHERE file_type > 1 OR data_more like '%fxml%'
1.2.5 计数
SELECT count(file_type) as count FROM visit_history WHERE file_type > 0 AND last_visit_time BETWEEN '2022-03-11 00:00:00.000' AND '2022-03-18 13:09:41.000'
1.2.6 众数
SELECT file_type, count(file_type) AS mode FROM visit_history GROUP BY file_type ORDER BY mode DESC FETCH FIRST ROW ONLY