大众世界 world of demotic + 社区新动力

 找回密码
 注册会员
搜索
查看: 2797|回复: 1

[ASP/ASPX] sql 数据库 mysql mssql oracle 合集

[复制链接]
发表于 2015-12-16 01:15:51 | 显示全部楼层 |阅读模式
分页 大型数据 超快方法 sql
pageRow : 每页显示数量
pages : 总页数

[SQL] 纯文本查看 复制代码
select * from (select top 10 * form (select top 1000*10 * from xx order by id desc) order by id) order by id
select * from (select top 10 * form (select top 999*10 * from xx order by id desc) order by id) order by id
select * from (select top 10 * form (select top 998*10 * from xx order by id desc) order by id) order by id
select * from (select top 10 * form (select top 9 * from xx order by id desc) order by id) order by id

select code,case when code in (201,207) then "成功" when code=202 then "成都1" else "失败" end code1 from student_business


回复

使用道具 举报

 楼主| 发表于 2017-6-19 10:56:59 | 显示全部楼层
UPDATE jzfp_pkh_pkh p set p.JTZZ=CONCAT('某某乡某某村',substring(p.JTZZ,-2))
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Archiver|手机版|小黑屋|Wod Inc. ( 蜀ICP备20000008号-8

GMT+8, 2024-5-14 03:50 , Processed in 0.134361 second(s), 39 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表