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 |
seyha_moth
Yak Posting Veteran
74 Posts |
Posted - 2007-05-01 : 08:00:58
|
Dear sir or madamI have a problem related to query. I want to write query with any filter value that can list all data.I want to write:select * from tblVideo where VideoID=any valuethen it will show all data but I don't want to write:select * from tblVideoI look forward to hearing from youThank you in advance!Best regard,seyha moth |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-05-01 : 08:04:58
|
pass NULL to @VideoID if you want to list all data.select * from tblVideo where ( @VideoID is nullor VideoID = @VideoID) KH |
 |
|
seyha_moth
Yak Posting Veteran
74 Posts |
Posted - 2007-05-01 : 08:23:31
|
Thank you for your reply because I can resolve my problem with your help.seyha moth |
 |
|
|
|
|