PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > foreign keys on view
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
foreign keys on view

Réponse
 
LinkBack Outils de la discussion
Vieux 01/04/2008, 11h22   #1
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut foreign keys on view

hi all i have a question for you all ^^...


it's possible to create a foreign keys that is related not on a table , but
on a view?

if possible, the view must be a merge view or also a temptbale?

thx to all

Livio


  Réponse avec citation
Vieux 01/04/2008, 13h11   #2
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: foreign keys on view

slepland@italianvampires.it wrote:
> hi all i have a question for you all ^^...
>
>
> it's possible to create a foreign keys that is related not on a table , but
> on a view?
>


No. A view does not contain any data. It is only a different way of
representing data which already exists in other table(s).


> if possible, the view must be a merge view or also a temptbale?
>


I'm not sure what you're talking about here.

> thx to all
>
> Livio
>
>
>



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
=================
  Réponse avec citation
Vieux 01/04/2008, 13h54   #3
Willem Bogaerts
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: foreign keys on view

> it's possible to create a foreign keys that is related not on a table , but
> on a view?
>
> if possible, the view must be a merge view or also a temptbale?


No. A foreign key is a constraint. You can only have constraints on
tables, not on views.

If you want to have identities that are unique across several tables,
consider using an "identity table" with nothing more than an
autoincrement field. Is that what you mean?

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h00.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08219 seconds with 11 queries