摘要: 声明和表中字段数量相同的变量declare @a nvarchar(50)declare @b nvarchar(50) 创建游标declare aaa cursor for select * from [dbo].[Company] 打开游标open aaa 看一下fetch next from 阅读全文
posted @ 2018-11-16 09:41 或三撇 阅读(310) 评论(0) 推荐(0) 编辑
摘要: create procedure [dbo].[pro_getStu](@pindex int, --最小是1,第1页@psize int,@name nvarchar,@dbcount int out--总记录数)asbegin 取符合条件的记录信息总数量declare @Sqlcount NVA 阅读全文
posted @ 2018-11-16 09:39 或三撇 阅读(263) 评论(0) 推荐(0) 编辑
摘要: select [Uid],[Usname],[Uname],[Urole],[Upicture] from Us create proc Upage(@pageindex int, 当前页@pagesize int, 显示几条@pagecount int out, 总条数@name varchar( 阅读全文
posted @ 2018-11-16 09:29 或三撇 阅读(327) 评论(1) 推荐(0) 编辑