-- DEMO CURSOR
DECLARE @ContactName nvarchar(30)
DECLARE CUR CURSOR FOR
SELECT ContactName FROM Northwind.dbo.Customers
OPEN CUR
FETCH CUR INTO @ContactName
WHILE (@@FETCH_STATUS=0)
BEGIN
PRINT @ContactName
FETCH CUR INTO @ContactName
END
CLOSE CUR
DEALLOCATE CUR
GO
Brad Chen's Developer Blog Azure Database Data science Machine Learning Cloud
訂閱:
張貼留言 (Atom)
-
a bicycle manufacturer - Adventure Works Cycles Scenarios include Manufacturing , Sales , Purchasing , Product Management , Contact Manageme...
-
Guideline for SQL Server configuration, installation and database creation
-
1.安裝了Oracle Client,就可以用Oracle Net Manager工具來設定TNS連線設定(Tnsnames.ora) Oracle Client 18.3 Installation 安裝Oracle Client 18.3 2.啟動Oracle Ne...
沒有留言:
張貼留言