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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 user input

Author  Topic 

thisisrahul
Starting Member

1 Post

Posted - 2008-11-18 : 05:58:42
hi,
i have a little exposure to access and sql as well.
is there any way that i get input from user? e.g.
i write a qurey
select * from table1 where table1.age = 25
now here i want this 25 is given by the user.


Thanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-11-18 : 06:16:54
you can use a parameter for passing age value. however you cant make sql prompt user for this value. that part need to be done at your front end by means of form. and just pass the value entered by user into parameter you created in sql.
Go to Top of Page
   

- Advertisement -