解决方法
这里有几篇文章:
> Introduction to Dynamic SQL
> Dynamic SQL Beginner’s Guide
从简介到动态sql:
Dynamic sql is a term used to mean sql code that is generated programatically (in part or fully) by your program before it is executed. As a result it is a very flexible and powerful tool. You can use dynamic sql to accomplish tasks such as adding where clauses to a search based on what fields are filled out on a form or to create tables with varying names.