这个问题在这里已经有了答案:
Equivalent of MySQL's \G in Oracle's SQL*Plus
(4 个回答)
8年前关闭。
在 MySQL 中,您可以使用\G 来运行查询:
select * from mytable\G
您的结果将显示在倒排表格中,有点像这样:
*************************** 1. row ***************************
column1: 12345
another_colum: another value
yet_another: ABCD
*************************** 2. row ***************************
column1: 238479
another_colum: another value again
yet_another: WXYZ
有什么方法可以使用 Oracle/sqlplus 获得类似的格式吗?
最佳答案
Tom Kyte 创建了一个名为 print_table 的实用程序。做大致相同的事情。
关于oracle - 使用Oracle/sqlplus时,在MySQL中显示\G之类的查询结果?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2546072/