表是否存在
语法
exists '表名'
例子
判断表 student 是否存在:
exists 'student'
执行结果:
Table student does exist
Took 0.0490 seconds
=> true
例子2
判断表 aaa 是否存在:
exists 'aaa'
执行结果:
Table studentss does not exist
Took 0.0155 seconds
=> false
禁用所有表
支持通配符操作:
disable_all '.*'
禁用某namespace下的所有表
https://www.malaoshi.top/show_1IX1vQtzdqDC.html
删除所有表
支持通配符操作:
drop_all '.*'
删除某namespace下的所有表
https://www.malaoshi.top/show_1IX1vQtzdqDC.html