将 SQL 文件包含到另一个 SQL 文件中

发布于 2024-10-03 20:27:07 字数 159 浏览 0 评论 0原文

我有一个特定的 SQL 文件,它可能“连接”到另一个更通用的 SQL 初始化文件。

是否有可能以某种方式包含从一个 SQL 文件到另一个 SQL 文件的引用?

我正在使用 Oracle,并且数据库是使用 Spring DataSourceInitializer 类填充的。

I have a specific SQL file that may be "connected" to another, more generic SQL init file.

Is it possible to somehow include reference from one SQL file to another SQL file?

I am using Oracle and the DB is populated using Spring DataSourceInitializer class.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

亽野灬性zι浪 2024-10-10 20:27:07

如果您使用 SQL*Plus 运行脚本,则可以使用 @(或@@)符号来包含另一个 SQL 脚本。

有关详细信息,请参阅手册:

http://download .oracle.com/docs/cd/B19306_01/server.102/b14357/ch12002.htm#i2696724

http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12003.htm#i2696759

If you are using SQL*Plus to run your script, you can use the @ (or @@) sign to include another SQL script.

See the manual for details:

http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12002.htm#i2696724

http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12003.htm#i2696759

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文