Mechanism of keys in view for PREPARE/EXECUTE statement

OK,I think it is a common requirement. any way, Thank you again.