Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique identifier in SQL statement from multiple tables?
Message
 
 
To
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:
00367761
Views:
16
Hi Gar,

That's probably it. I actually need an Integer identifier, so I'll do val(substr(sys(2015,2,9)).

Thanks a lot. I'll give it a try.

>>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
>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform