擅长:python、mysql、java
<p>您可以尝试使用另一个解决方案-进程键控表</p>
<blockquote>
<p>A process-keyed table is simply a permanent table that serves as a
temp table. To permit processes to use the table simultaneously, the
table has an extra column to identify the process. The simplest way to
do this is the global variable @@spid (@@spid is the process id in SQL
Server). </p>
</blockquote>
<p>。。。</p>
<blockquote>
<p>One alternative for the process-key is to use a GUID (data type
uniqueidentifier).</p>
</blockquote>
<p><a href="http://www.sommarskog.se/share_data.html#prockeyed" rel="nofollow noreferrer">http://www.sommarskog.se/share_data.html#prockeyed</a></p>