How to pass table name and column name of that table dynamically in a cursor in Sybase....

how to define a cursor where column name and table names are passed dynamically..

I have tried it as following but it is not working..

declare field_Name cursor for
select T.@columnName from @tableName T


Please help me out....It is really helps me alot...