
sqlserver
KnuthZ
开发唯快不破
QQ 260737830
展开
-
sqlserver存储过程调试方法
declare @xx varchar(max);declare @where varchar(100);declare @order varchar(100);declare @page int;declare @row int;set @page = 1;set @row =10;set @where='1=1';set @order='order by id';exec dbo.p_yw_g...原创 2018-06-23 16:54:23 · 12607 阅读 · 0 评论 -
sqlserver 动态游标
--创建动态游标set @sql = 'declare rowCursor cursor For select aimg,aname,aprice from ( select *, ROW_NUMBER() over('+ @order +') as rn from (select id,aimg,aname,aprice from F_Anli where '+ @where +') t ) a...原创 2018-06-23 16:55:28 · 3060 阅读 · 0 评论