This topic created in 4663 days ago, the information mentioned may be changed or developed.
看了下网上的解决办法,基本上是拼接sql语句,不是说拼接不好吗?
3 replies • 1970-01-01 08:00:00 +08:00
 |
|
分页有2个变量: 当前页 每页条数
只拼这两个进去没问题,强制int。
没什么坏处。
说拼接不好是你拼接用户提交过来的字符串,缺乏处理容易被注入。
|
 |
|
google: tsql offset fetch next
|
 |
|
记得有说法是拼接sql后, sql server 无法对拼接的sql进行缓存。
|