Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting from a cursor
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Selecting from a cursor
Divers
Thread ID:
00531118
Message ID:
00531118
Vues:
52
I am using a cursor in code to to perform a loop. This cursor gets updated within the loop when certain conditions are met. This is all good.

What I need to do after the loop is SELECT all the records from the cursor that are not within another table.

Does SQL Server 7 allow a SELECT from a cursor.

My syntax is:

SELECT * FROM cursorname
WHERE fieldname NOT IN (SELECT otherfieldname FROM table)
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform