Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在返回表的函数中执行诸如 sp_who2 之类的系统存储过程?
不,你不能那样做。
通常,您会调用insert exec以从存储过程中获取值,但您不能在函数中执行此操作。
insert exec