[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Auto-Relacionamento
Página 1 de 1

Auto-Relacionamento

Enviado: Abril 20th, 2012, 12:01 pm
por dmfilho
Bom dia,

Estou precisando criar um cadastro com auto-relacionamento, ou seja, eu preciso que uma tabela se relacione com ela mesma, ou seja, eu preciso de um tabela principal e uma tabela que seria o espelho da original.

Por exemplo:
O Daniel é filho do André, sendo que o André já está cadastrado em minha tabela.

Att..

Daniel Montello Filho

Re: Auto-Relacionamento

Enviado: Abril 26th, 2012, 10:55 am
por Gustavo
Olá,

Segue dois links que falam sobre tabelas virtuais que são tabela não fisícas e sim espelhos de uma tabela fisíca.
O Relacionamento entre a fisíca e a virtual é normal, com ose fosse com qualquer outra tabela.

viewtopic.php?f=2&t=155&p=399&hilit=virtual#p399
viewtopic.php?f=2&t=55&p=146&hilit=virtual#p146