写下来:
DECLARE @TNAME nvarchar(100)
DECLARE myCursor CURSOR FOR
select name from systypes
OPEN myCursor
FETCH NEXT FROM myCursor INTO @TNAME
WHILE @@FETCH_STATUS=0
BEGIN
PRINT (@TNAME)
FETCH NEXT FROM myCursor INTO @TNAME
END
CLOSE myCursor
DEALLOCATE myCursor