Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

Here an example with no nesting

$
0
0
$0SET NOCOUNT ON;$0 $0$0 $0 $0DECLARE @product nvarchar(50)$0 $0DECLARE @message varchar(80)$0 $0DECLARE product_cursor CURSOR FOR $0 $0select ProductID from Products$0 $0$0 $0 $0OPEN product_cursor$0 $0FETCH NEXT FROM product_cursor INTO @product$0 $0$0 $0 $0WHILE @@FETCH_STATUS = 0$0 $0BEGIN$0 $0$0 $0 $0    SELECT @message = '         ' + @product$0 $0    PRINT @message$0 $0    FETCH NEXT FROM product_cursor INTO @product$0 $0    END$0 $0$0 $0 $0CLOSE product_cursor$0 $

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>