https://zhidao.baidu.com/question/1445874299396024060.html

 

1

1
 SHOW TABLES LIKE '%tb_bp_d_case%';

2.

1
select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='dbname' and TABLE_NAME='tablename' ;

3. 如果表不存在就建立这个表,那么可以直接用

1
create table if not exists tablename

 

这样的指令来建立,不需要先去查询表是否存在。4. 从模板表创建表:

1
create table if not exists like old_table_name;

相关文章:

  • 2022-03-08
  • 2021-08-28
  • 2021-10-30
  • 2022-02-15
  • 2021-12-27
  • 2022-02-11
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-12-22
  • 2022-12-23
  • 2021-09-09
相关资源
相似解决方案