C#判断MySQL数据库中是否存在某个数据库或数据表

涉及到的SQL语句如下:

判断表是否存在:

select count(*) as A from information_schema.tables where table_name = 'test' and table_schema ='test1'

 删除数据库表

"DROP TABLE IF EXISTS test"

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-26 03:10:17       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-26 03:10:17       100 阅读
  3. 在Django里面运行非项目文件

    2024-05-26 03:10:17       82 阅读
  4. Python语言-面向对象

    2024-05-26 03:10:17       91 阅读

热门阅读

  1. vivado CONFIG CONFIG_MODE

    2024-05-26 03:10:17       36 阅读
  2. hyperf 多对多关联模型

    2024-05-26 03:10:17       32 阅读
  3. 云存储与云计算详解

    2024-05-26 03:10:17       31 阅读
  4. 使用两块ESP8266实现ESP-NOW通信

    2024-05-26 03:10:17       25 阅读
  5. Git管理

    2024-05-26 03:10:17       31 阅读
  6. Cisco ASA防火墙抓包命令Capture

    2024-05-26 03:10:17       32 阅读
  7. vue3项目中新增修改时使用nextTick时遇到的问题

    2024-05-26 03:10:17       32 阅读
  8. Flutter 中的 CupertinoTabBar 小部件:全面指南

    2024-05-26 03:10:17       35 阅读
  9. echarts 大数据量 数据造成卡顿处理

    2024-05-26 03:10:17       39 阅读
  10. Python库之Scrapy的高级用法深度解析

    2024-05-26 03:10:17       36 阅读