Mssql passes an indeterminate number of parameters to a stored procedure of type xml

stored procedure

I believe that in the process of using the database, you have more or less established some stored procedures with some parameters to increase the applicability of the stored procedures.

insert image description here
Like the screenshot of Lao Gu, usually, we need to splice many parameters directly and pass them to the stored procedure as a whole, so that they can be processed conveniently.

Although there is nothing wrong with doing this, these operations and instructions for splicing various conditions are generally performed outside the database. When we need to implement the same function in other languages, we usually need to perform it again The splicing operation of various instructions is re-implemented to achieve the same database operation in different language environments.

In each database, there is basically no so-called reconstruction method, that is, we cannot use the same stored procedure name and different parameters to achieve different data processing requirements.

CSDN illiterate Lao Gu's blog , https://blog.csdn.net/superwfei

Guess you like

Origin blog.csdn.net/superwfei/article/details/131759145