如何使用 psql 列出名称不包含数字的表?

How to list tables whose names not contain numbers with psql?

如何列出名称中不包含数字的所有表?

我尝试了 \dt [A-z]* 但没有成功。

这样试试:

SELECT owner, table_name
  FROM dba_tables where NOT REGEXP_LIKE(table_name, '[[:digit:]]') 

SELECT table_name
  FROM user_tables where NOT REGEXP_LIKE(table_name, '[[:digit:]]') 

您想否定 [:digit:] 字符 class,例如

\dt public.[^[:digit:]]+

说 "all tables in schema public whose names are composed only of characters that can be anything except digits"