怎样确定数据库中是否有某张表

在查询数据时有时我们需要在多个库中确定该表是否存在于当前库中,笔者常用以下这种方式:

describe 表名

// describe 表名
describe tablename

如:describe sdk_xxx_xxxase
在这里插入图片描述
若该表不存在,则提示该表不存在,或返回为空
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42258975/article/details/111467468