How to write DROP TABLE in different databases 1.MySql DROP TABLE IF EXISTS [table_name] 2. In Oracle: BEGIN EXECUTE IMMEDIATE 'DROP TABLE [table_name]'; EXCEPTION WHEN OTHERS THEN NULL; END; 3. In Sql Server IF EXISTS ( SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '[table_name]') DROP TABLE [table_name] Thank you for reading, I hope it can help you, thank you for your support of this site! |
<<: Detailed steps to install Anaconda on Linux (Ubuntu 18.04)
>>: How to implement responsive layout in vue-cli
This article shares the specific code for impleme...
Today, I want to write about a "low-tech&quo...
I've been learning about stacking contexts re...
Without further ado, I will post the code for you...
When a user registers, they will click on a label...
1. First create the file (cd to the directory whe...
Today, when verifying the concurrency problem of ...
<br />Original article: http://www.alistapar...
This article introduces the effect of website pro...
When the existing video player cannot meet the ne...
This article uses an example to illustrate the us...
In MySQL, you can use the SQL statement rename ta...
This article example shares the specific code of ...
Table of contents Unary Operators Boolean Operato...
This article shares the specific code of JavaScri...