Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique identifier in SQL statement from multiple tables?
Message
De
09/05/2000 13:41:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00367710
Message ID:
00367729
Vues:
16
>Hi everyone,
>
>Do you know, is there a way to add unique identifier in SQL, which operates on several tables.

Hi Nadya

If you don't need them to reflect recno() -- that is you don't care if they contain meaingful info so long as they are unqiue try:
SELECT *, SUBSTR(SYS(2015),2,9) AS id FROM MYTABLE1  inner join  mytable2 on mtable1.pk=mytable2.fk into cursor mycursor
Thanks

Gar W. Lipow
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform