I have a recursive scalar function that needs to update a record in another table based on the value it is returning, however UPDATE statements are not allowed in the funct开发者_C百科ion.
How can I update the table from within the function?
UPDATE statements are not allowed in the function
That's the rule - functions are not allowed to have any data-changing side-affects.
You have to use a Stored Procedure to UPDATE.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论