开发者

Do I need to add an ID value to my objects?

开发者 https://www.devze.com 2023-03-01 03:45 出处:网络
I have all these nice object开发者_Python百科s set up and ready to be added to tables. How are the objects made unique when I say:

I have all these nice object开发者_Python百科s set up and ready to be added to tables. How are the objects made unique when I say:

CREATE TYPE obj_table AS TABLE OF obj_type;

Do I need to create a table that pairs an item with an ID, and declare the ID to be the primary key, or is this somehow done implicitly?


For PL/SQL nested tables (see documentation), the index number is implicit with the definition of the table and assigned as you insert items into your defined table.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号