I have an idea to run sql operators from the stored procedures. For me it has become a necessity because every client has their own data structure and when a new version is released errors spring up. In transfering a variable code to the level of database mistakes can be avoided. But in transfering the code I'm losing flexibility of iBatis.
What is the best practices ?