Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field Names as Variables

Status
Not open for further replies.

hilbertl3

Technical User
Sep 22, 2004
77
US
Is it possible to use a variable instead of a field name in a cursor? I want to be able to run the cursor for a set of fields, but I want to pass the names of the fields into the cursor as part of the SQL statement.

Hilbert l
 

You would need to use dynamic sql. [3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top