FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 25
→
Integridade Pai-Filho - Não Exclui Filhos
Integridade Pai-Filho - Não Exclui Filhos
Débuté par Mister ANDRE MARTINI, 28 juil. 2016 21:49 - 3 réponses
Connectez-vous…
Mister ANDRE MARTINI
#1
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 28 juillet 2016 - 21:49
Olá,
tenho duas tabelas: Xml_nfe_entrada (tabela pai) e Xml_nfe_entrada_produtos (tabela filho), a chave única da tabela Xml_nfe_entrada é uma chave composta (codigo empresa + sequencial), tenho a mesma chave na tabela filho só que não é única.
veja a configuração da integridade entre as tabelas (1-N)
veja a configuração da integridade entre as tabelas - regra para deletar
Delete the "Xml_nfe_entrada" and all his "Xml_nfe_entrada_produtos"
Delete o "Xml_nfe_entrada" e todos os seus "Xml_nfe_entrada_produtos"
veja os dados da tabela pai, tem somente o sequencial 1 e 2
veja os dados da tabela filho, tem o sequencial 3 que não existe na tabela pai
O que pode estar errado?
Obrigado!
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Signaler
0
0
Mister ANDRE MARTINI
#2
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 22 août 2016 - 21:20
Alguma dica?
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Signaler
0
0
Mister ANDRE MARTINI
#3
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 22 août 2016 - 21:52
Agora resolveu funcionar!
--
André Martini
IS2 Automotive
http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive
http://www.is2.inf.br/is2construtive/index.html
IS2 Store
http://www.is2.inf.br/is2store/index.html
IS2 Gerent
http://www.is2.inf.br/is2gerent/index.html
Message modifié, 22 août 2016 - 21:52
Signaler
0
0
BOLLER ADRIANO
#4
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 26 août 2016 - 01:16
:thank you:
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Signaler
0
0
→ Revenir à WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte