Stored Procedure dynamic / generic where
问题 I know there a several Answers to this question but it i thing non of them fit my needs so here comes my question based on this SQL Fiddle i will explain you what i'm trying to achieve. How you can see it's just a simple table of persons so now i want to get a person by his id so i have to write a simple query SELECT * FROM Persons WHERE PersonID =@PersonID; to get him i can do this now for any possible combination and i will get tons of stored procedures just for this Table So here is my