我正在使用Adaptive Server Anywhere 9与Sybase Central一起工作,我想了解如何使用tempDB的一些示例。如何插入临时表?
如何插入一些记录到临时表中?
我想:
select * into TempDB.dba.#testing from testTable
但我得到了以下错误:
Syntax error near '.' on line 1
我正在使用Adaptive Server Anywhere 9与Sybase Central一起工作,我想了解如何使用tempDB的一些示例。如何插入临时表?
如何插入一些记录到临时表中?
我想:
select * into TempDB.dba.#testing from testTable
但我得到了以下错误:
Syntax error near '.' on line 1
有两套临时表和你已经把它们混合起来
1)相关的还有会议访问为#table即
select * into #testing from testTable
只要您的连接可以持续这个时间
2)tempdb中的表。这些一直持续到服务器重新启动。
select * into TempDB.testing from testTable
详情参见SYBASE文档ASE
为什么会出现一个 “#”?也应该是tempdb – ghostdog74 2010-02-09 13:47:45
我把它改成select * into tempdb.dba.testing from afdeling 但仍然是相同的错误 – Sjemmie 2010-02-09 14:03:32