如何插入临时表?

发布于 2024-08-20 09:43:01 字数 267 浏览 7 评论 0原文

我正在使用 Adaptive Server Anywhere 9 来使用 Sybase Central,并且想要一些有关如何使用 tempDB 的示例。

如何向临时表中插入一些记录?

我尝试过:

select * into TempDB.dba.#testing from testTable

但出现以下错误:

“.”附近存在语法错误在第 1 行

I'm working with Sybase Central using Adaptive Server Anywhere 9 and I want some examples of how to use tempDB.

How can I insert some records in to a temporary table?

I tried:

select * into TempDB.dba.#testing from testTable

But I got the following error:

Syntax error near '.' on line 1

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

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

发布评论

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

评论(1

挽容 2024-08-27 09:43:01

有两组临时表,并且您将它们混合在一起

1) 与会话相关的访问作为 #table 即,

select * into #testing from testTable

只要您的连接

2) tempdb 中的表就持续存在。这些持续到服务器重新启动为止。

select * into TempDB.testing from testTable

有关详细信息,请参阅 sybase 文档 ASE

There are two sets of temp tables and you have mixed them up

1) Session related there are access as #table ie

select * into #testing from testTable

This lasts as long as your connection

2) tables in tempdb. These persist until the server gets rebooted.

select * into TempDB.testing from testTable

See sybase docs for more info ASE

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