Well currently you're using positional parameters (?
) rather than named parameters (@empnum
). You haven't told us what database you're using, but I'd expect that if you can use named parameters, you could use the same name everywhere and just add a single value.
With positional parameters, you would have to provide a value for each placeholder, as there's no way of tying separate ones together.