'describe' 命令在 oracle 上不起作用的原因是什么?

What is the reason for not working of 'describe' command on oracle?

我正在尝试 运行 oracle 上的 'describe table_name' 命令。我正在使用 dbeaver 访问 oracle。但是,当我 运行 命令时,它显示 SQLException 和错误消息 "invalid sql statement"。我该如何操作?

describe 不是 SQL 语句,否则它会被记录在 SQL 语言参考中:

describe 命令的文档可以在 SQL*Plus 命令参考中找到:

这意味着 在 SQL*Plus 中可用(并且可能在 SQL Developer 中可用)。这是一个客户端命令,因此您使用的 SQL 客户端需要支持它。

DESCRIBE] 命令只是一个 SQL*Plus 命令,即使您在 SQL Developer 中尝试它也不会工作!

来源:https://ss64.com/ora/desc.html

突出显示对象并按 f4 ,这将为您提供 table/object 详细信息

https://dbeaver.io/forum/viewtopic.php?f=3&t=1937

因为@a_horse_with_no_name 已经说过 desc 不是 SQL 语句。所以我们可以使用这个快捷方式

我刚在 SQL Developer 上试过,它成功了。也许它以前不可用,但肯定是 SQL Developer 19.1.