Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique identifier in SQL statement from multiple tables?
Message
From
09/05/2000 13:41:05
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00367710
Message ID:
00367729
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform