Use SQL View or SQL Query?

前端 未结 9 1252
旧巷少年郎
旧巷少年郎 2021-01-17 22:46

I am working on an application to get data from a MS-SQL server (2005). In the command text, I can pass a sql query like this:

string query = \"SELECT T1.f1,         


        
9条回答
  •  无人及你
    2021-01-17 23:27

    The view is probably a better.

    That way, you can modify the query (for optimization) at a later date without having to change the code.

提交回复
热议问题