sh 丢弃todas tabelas,如%LOCK%

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 丢弃todas tabelas,如%LOCK%相关的知识,希望对你有一定的参考价值。

for TABELA in `db2 connect to DBALIAS >  /dev/null; db2 list tables for all | grep LOCK | awk '{print $1}'`;do db2 drop table $TABELA; done
db2 "select tabname from syscat.tables where tabname like '%N1%'" | sed "s/ *$/ /g"

以上是关于sh 丢弃todas tabelas,如%LOCK%的主要内容,如果未能解决你的问题,请参考以下文章

sh Laravel Artisan - Executa todas作为迁移

sh Laravel Artisan - Executa os seeders das tabelas

sh 丢弃多个stashes

php文件加锁 lock_sh ,lock_ex

sh mubix-lock.sh

sh wait-for-bosh-lock.sh