A Thursday 14 April 2011 19:48:27 escriguéreu:
> Hi Francesc,
> 
> I have nested table defined inside table.
> 
> When I inserted data in parent table, I can simultaneously insert
> data into nested table belongs to that parent table.
> 
> Now, I want to insert more rows in nested table and my requirement is
> that for every row of parent table, can I insert as many rows in
> nested table. It means that in 1 column cell (corresponding to
> nested table) of parent table, I want to insert as many rows as
> possible.

Sorry, but you cannot do that (on trivial way at least).  One nested 
table is fixed in size, and it is allowed only one of these per each row 
in parent table.

If you need a variable number of rows per entry in the parent table I'd 
recommend using a 'mixed' approach.  For example, use an `Int64Column` 
column that references to a VLArray entry that, on his hand, will 
contain a variable number of references (`Int64Atom` entries) to another 
Table object where you can put your 'nested' table entries.

Perhaps there are other ways to simulate what you are trying to do.  
Just think about other possibilities and choose the most appropriate for 
your needs.

Hope it helps,

-- 
Francesc Alted

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to