Is it possible to read data in another session's temporary table?

后端 未结 2 569
春和景丽
春和景丽 2020-12-18 00:54

We\'re maintaining (and occasionally debugging) a large in-house system. The system has 20+ databases, and a number of servers interfacing to other systems, processing data,

2条回答
  •  被撕碎了的回忆
    2020-12-18 01:31

    If you prefix a temporary table name with two octothorpes, e.g. ##mystuff, it creates a global temporary table that exists outside session scope.

    That does require you to be able to alter the query text, which may or may not be accessible in this specific case.

提交回复
热议问题