Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 MYSQL 的常客,最近开始在 Oracle EE Database 12c 中学习 SQL 和 PL/SQL。我正在尝试设置示例员工,部门,...用于学习目的的表格。我有 SQL 文件来创建模式、创建表 * 在我的文件系统中填充表 SQL 文件。
我知道\. <path to SQL file>MYSQL 中加载和运行外部脚本的命令。所以我想知道,Oracle SQL plus 命令行中是否存在这样的方法?
\. <path to SQL file>
用于@在 SQL Plus 中运行外部脚本。键入@,后跟目录位置和文件名。例子:
@
SQL> @ C:\sample_query.sql;