This is generally not good database design. What are you really trying to 
do? Would it make more sense for mytable2 to reference mytable?

Anthony

On Tuesday, June 19, 2018 at 9:09:42 PM UTC-4, Ayron Rangel wrote:
>
> How can i save the value of one field in another table field??
>
> db.define_table('mytable',
>     Field('n1', 'integer', requires=IS_NOT_EMPTY())
>     )
>
> db.define_table('mytable2',
>     Field('n1', 'integer', requires=IS_NOT_EMPTY()) -> I want this field 
> iguals the field (n1) on mytable.
>     )
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to