如何在 Oracle 数据库中运行查询?打开命令提示符并连接到数据库。输入命令 select * from table_name,其中 table_name 是要查询的表名。
如何读 Oracle 数据库
打开命令提示符
ows 中,按 Windows 键 + R,输入 "cmd" 并按回车键。连接到数据库
sqlplus username/password\@servername:port/servicename
示例:
sqlplus scott/tiger@localhost:1521/xe
运行查询
连接到数据库后,您可以运行查询来检索数据。
select * from table_name;
示例:
select * from emp;
其他有用的命令