当前位置:网站首页>MySQL / SQL Server判断表或临时表存在则删除
MySQL / SQL Server判断表或临时表存在则删除
2022-04-23 02:39:00 【一只努力xx的程序媛】
MySQL
- 判断表存在则删除,table_name是表的名字
DROP TABLE IF EXISTS table_name;
SQL Server
- 判断临时表存在则删除,#temp是临时表的名字
if object_id('tempdb..#temp') is not null
drop table #temp
- 判断表存在则删除,t_table是表的名字
if object_id('t_table') is not null
drop table t_table
版权声明
本文为[一只努力xx的程序媛]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_23888451/article/details/105148023
边栏推荐
- 全局、獨享、局部路由守衛
- [XJTU computer network security and management] Lecture 2 password technology
- RT_Thread自问自答
- Handwritten memory pool and principle code analysis [C language]
- leetcode 烹飪料理
- [XJTU計算機網絡安全與管理]第二講 密碼技術
- Hack the box optimum
- Execute external SQL script in MySQL workbench and report error
- 小程序 canvas 画布半圆环
- 002_ Redis_ Common operation commands of string type
猜你喜欢
![[xjtu Computer Network Security and Management] session 2 Cryptographic Technology](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[xjtu Computer Network Security and Management] session 2 Cryptographic Technology

认识进程(多线程_初阶)
![[XJTU computer network security and management] Lecture 2 password technology](/img/b0/263e8dcbfeb2ce9f504a9c8eb76b07.png)
[XJTU computer network security and management] Lecture 2 password technology
![[wechat applet] set the bottom menu (tabbar) for the applet](/img/e2/98711dfb1350599cbdbdf13508b84f.png)
[wechat applet] set the bottom menu (tabbar) for the applet

Arduino esp8266 network upgrade OTA

下载正版Origin Pro 2022 教程 及 如何 激 活

SQL server2019无法下载所需文件,这可能表示安装程序的版本不再受支持,怎么办了

Flink stream processing engine system learning (III)

打靶narak

Halo open source project learning (I): project launch
随机推荐
[XJTU計算機網絡安全與管理]第二講 密碼技術
Rhcsa day 4 operation
Preliminary understanding of stack and queue
How to recognize products from the perspective of Dialectics
智能辅助功能丰富,思皓X6安全配置曝光:将于4月23日预售
[xjtu Computer Network Security and Management] session 2 Cryptographic Technology
牛客手速月赛 48 C(差分都玩不明白了属于是)
Implementation of distributed scenario business operation log (based on redis lightweight)
A domestic image segmentation project is heavy and open source!
PIP install shutil reports an error
MySQL C language connection
小程序 读取文件
Those years can not do math problems, using pyhon only takes 1 minute?
数仓建表111111
Renesas electronic MCU RT thread development and Design Competition
leetcode 烹饪料理
go语言打怪通关之 ⌈互斥锁和状态协程⌋
基于Torchserve部署SBERT模型<语义相似度任务>
PTA: praise the crazy devil
定了,今日起,本号粉丝可免费参与网易数据分析培训营!