SQL Filter Query
问题 I have a table with a number of fields in it. I am trying to create search filter in asp.net so the user can search by one or a combination of fields. So basically I want to create a single stored procedure that takes in 4 params and it will append the param to the WHERE clause if its not null... TableExample has 4 columns, Col1 Col2 Col3 Col4 I am hoping there is way to do this with a single stored procedure instead of having to create one for each possible combination. I was trying