我想用ANSI SQL创建一个临时表,这样我就可以使用相同的查询在ORACLE和MSSQL中创建表。如何使用ANSI SQL创建临时表?
0
A
回答
-1
Create temporary table using the following statement
CREATE GLOBAL TEMPORARY TABLE my_temp_table (
id NUMBER,
description VARCHAR2(20)
)
ON COMMIT PRESERVE ROWS;
ON COMMIT PRESERVE ROWS clause indicates that rows should persist beyond the end of the transaction. They will only be removed at the end of the session.
相关问题
- 1. 如何使用PetaPoco创建临时表?
- 2. 如何使用ifnull创建临时表
- 3. 如何创建临时表
- 4. 如何使用SQL Server中的Create语句创建临时表?
- 5. SQL - 用IF创建临时表然后
- 6. 在SQL中实时创建临时表
- 7. SQL-为计算而创建临时表
- 8. 创建临时表
- 9. 创建临时表
- 10. 创建临时表
- 11. 在SQL中创建临时表
- 12. SQL - 创建加入的临时表
- 13. pl/sql创建临时全局表
- 14. SQL中的临时表创建
- 15. 如何在SQL中使用临时表
- 16. 创建和使用临时表
- 17. 从SQL Server中的临时表创建临时视图
- 18. 使用Union时应如何创建临时表?
- 19. 如何在创建视图时使用临时表?
- 20. 如何创建返回临时表?
- 21. SQL Server:使用动态列创建临时表
- 22. SQL Server 2012 SSRS:使用全局临时表创建报告
- 23. 在sql server中使用xml.nodes函数创建临时表
- 24. sql server 2005使用xml参数创建临时表
- 25. 是否需要使用#来在SQL Server中创建临时表?
- 26. 使用动态SQL和光标在临时表中创建列
- 27. 使用Excel宏(ADODB)在SQL Server 2008中创建临时表
- 28. 使用SQL Server临时表
- 29. 如何在sql server 2008 R2数据库中创建临时表?
- 30. 如何通过MS Access在SQL Server中创建临时表
你不能。没有创建临时表的标准。这是供应商特定的。 – OldProgrammer