Does Oracle have an equivalent of SQL Server's table variables?

前端 未结 4 448
闹比i
闹比i 2020-11-28 07:54

In SQL Server, you can declare a table variable (DECLARE @table TABLE), which is produced while the script is run and then removed from memory.

Does Ora

4条回答
  •  一向
    一向 (楼主)
    2020-11-28 08:49

    the table in variable in oracle not the same as table variables in MS SQLServer. in oracle it's like regular array in java or c#. but in MS SQLserver it is the same as any table, you can call it logical table. but if you want something in oracle that does exactly the same as table variable of SQLserver you can use cursor.

    regards

提交回复
热议问题