摘要: Alter PROCEDURE dbo.sp_InsertRecords AS Declare @id int -- first we'll pull some records out of our table. DECLARE CursorQuery CURSOR FOR SELECT ID FROM myTable WHERE MyRecord > 15 OPEN CursorQuery -- we're going to fetch our record into the ID variable which we'll use for inserting a 阅读全文
posted @ 2011-06-29 16:27 cwe 阅读(418) 评论(0) 推荐(0)