select * 但却不想显示所有列的示例脚本:
if you using sqlplus
you can use the noprint tag
SQL> col noprint
代码:--------------------------------------------------
1 select * from tab
2* where rownum < 2
rollingpig@test> /
TNAME TABTYPE CLUSTERID
------------------------------ ------- ----------
A TABLE
1 row selected.
rollingpig@test> col CLUSTERID noprint
rollingpig@test> l
1 select * from tab
2* where rownum < 2
rollingpig@test> /
TNAME TABTYPE
------------------------------ -------
A TABLE
1 row selected.
rollingpig@test>
...
本文介绍了一种在SQL Plus环境中使用*noprint*标签选择表中的特定列而不显示所有列的方法。通过示例展示了如何仅选择指定列并隐藏其他列的数据。

被折叠的 条评论
为什么被折叠?



