Stored procedure, pass table name as a parameter

后端 未结 5 1773
小鲜肉
小鲜肉 2020-12-12 02:15

I have about half a dozen generic, but fairly complex stored procedures and functions that I would like to use in a more generic fashion.

Ideally I\'d like to be abl

5条回答
  •  無奈伤痛
    2020-12-12 02:34

    You'd have to use dynamic sql. But don't do that! You're better off using an ORM.

提交回复
热议问题