從 SAP HANA 中的臨時表中刪除
臨時表是會話特定的。因此,你需要像下面這樣使用 truncate 代替 delete
truncate table #temptable;
另外,可以檢查一下你的發行版嗎?在最近的版本中,delete 也能很好執行。下面是一個例子
Drop table #temptable; Create local temporary table #temptable(id integer, str nvarchar(30)); Insert into #temptable values (1,'abc'); Insert into #temptable values (2,'xyz'); Select * from #temptable; --> returns 3 rows Delete from #temptable; Select * from #temptable;--> returns 0 rows
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
安卓
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP