You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
慎用存储过程:一条语句引发的数据库存储100%占用
前言 由于项目中使用了多级目录结构,数据库的存储使用id,parentId进行存储,有个需求就是通过id查询最顶层目录的id(最顶层目录id的parentId=0),想尝试使用存储过程来解决这个问题。因为存储过程使用到了临时表导致存储空间被占满。
https://ladybug.top/posts/%E6%95%B0%E6%8D%AE%E5%BA%93%E6%8A%80%E6%9C%AF/Use-stored-procedures-with-caution-100-of-the-storage-caused-by-a-statement-is-occupied.html
Beta Was this translation helpful? Give feedback.
All reactions