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 - 2005-12-09 : 06:48:30
|
| abhilash writes "dear,how can we accept a value from the user ?say, something like the & <variable name> in oracle?for example,select name from authors where age=&value(here user should be able to input a value from keyborad when query is run) thanksabh" |
|
|
surendrakalekar
Posting Yak Master
120 Posts |
Posted - 2005-12-09 : 07:39:45
|
| Declare @age intSelect @age = 25Select Name from authors where age = @ageSurendra |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-12-09 : 08:31:04
|
| In Books On Line, SQL Server help file refer variables, assigning for more informationMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|