Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-03-27 : 11:16:29
|
gopal writes "sir I am try to write a select statement in which we can pass column name through variable . How can i do it please give me answer. Query like thsdeclare @str1 varchar(50)set @str1 = "company_name"select @str1 from company_table" |
|
graz
Chief SQLTeam Crack Dealer
4149 Posts |
Posted - 2002-03-27 : 11:16:29
|
Please read the Frequently Asked Questions page. Especially the section on dynamic SQL. |
|
|
|
|
|