当前位置:网站首页>If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
2022-04-23 02:42:00 【An effort to XX program yuan】
MySQL
- Delete if the table exists ,table_name It's the name of the watch
DROP TABLE IF EXISTS table_name;
SQL Server
- If it is judged that the temporary table exists, delete ,#temp Is the name of the temporary table
if object_id('tempdb..#temp') is not null
drop table #temp
- Delete if the table exists ,t_table It's the name of the watch
if object_id('t_table') is not null
drop table t_table
版权声明
本文为[An effort to XX program yuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230239165436.html
边栏推荐
- Deploying sbert model based on torchserve < semantic similarity task >
- leangoo脑图-共享式多人协作思维导图工具分享
- 打靶narak
- Execute external SQL script in MySQL workbench and report error
- Les derniers noeuds K de la liste jz22
- 定了,今日起,本号粉丝可免费参与网易数据分析培训营!
- Fashion MNIST 数据集分类训练
- 想用Mac学习sql,主要给自己个充足理由买Mac听听意见
- Probabilistic model of machine learning
- Handwritten memory pool and principle code analysis [C language]
猜你喜欢

Practical combat of industrial defect detection project (II) -- steel surface defect detection based on deep learning framework yolov5

LeetCode 1450 - 1453

Hack the box optimum

ROP Emporium x86_ 64 7 ~ 8 questions

leangoo脑图-共享式多人协作思维导图工具分享

打靶narak

Intelligent agricultural management model

Interpretation of the future development of smart agriculture

本地远程访问云服务器的jupyter

Talk about current limiting
随机推荐
想用Mac学习sql,主要给自己个充足理由买Mac听听意见
MySQL复杂查询使用临时表/with as(类似表变量)
Talk about current limiting
Synchronized锁及其膨胀
The penultimate K nodes in jz22 linked list
RT_ Thread ask and answer
Day 3 of learning rhcsa
【无标题】
一、序列模型-sequence model
基于Scrum进行创新和管理
[suggestion collection] hematemesis sorting out golang interview dry goods 21 questions - hanging interviewer-1
Global, exclusive, local Routing Guard
1215_ Hello world used by scons
WordPress calls the specified page content. 2 get_ children()
Push data from onenet cloud platform to database
Download the genuine origin Pro 2022 tutorial and how to activate it
Program design: l1-49 ladder race, allocation of seats (simulation), Buxiang pill hot
php+mysql对下拉框搜索的内容修改
Target narak
Using go language to build web server