1、按流程单号升序排序后,从第11条数据开始截取,截取10条数据;
select * from ofc order by 流程单号 offset 11 row fetch next 10 rows only
2、查看存储过程proc是否存在:
SELECT * FROM sysobjects WHERE TYPE='P' and name='proc';
3、存储表a是否存在:
SELECT * FROM sysobjects WHERE TYPE='U' and name='a';