Check if a temporary table exists and delete if it exists before creating a temporary table

前端 未结 15 731
忘掉有多难
忘掉有多难 2020-11-29 14:13

I am using the following code to check if the temporary table exists and drop the table if it exists before creating again. It works fine as long as I don\'t change the colu

15条回答
  •  独厮守ぢ
    2020-11-29 15:05

    pmac72 is using GO to break down the query into batches and using an ALTER.

    You appear to be running the same batch but running it twice after changing it: DROP... CREATE... edit... DROP... CREATE..

    Perhaps post your exact code so we can see what is going on.

提交回复
热议问题