Message
 
To
28/09/2006 16:55:18
General information
Fórum:
Visual FoxPro
Category:
Bases de dados, Tabelas, Views, Indices e SQL
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
ID da thread:
01157978
ID da mensagem:
01157985
Views:
36
Is there any limitation how many Synonyms you can have for one Style?


>>
>>create cursor stylelist (style c(10),synonyms m)
>>select styles
>>scan
>>  select synonyms
>>  lcSynonym = ""
>>  scan while fk = styles.pk
>>   lcSynonyms = m.lcSynonyms + iif(empty(m.lcSynonyms),"",",") + synonyms.synonym
>>  endscan
>>  if _Tally > 0
>>    lcSynonyms = "("+m.lcSynonyms+")"
>>  endif
>>  select styles
>>  insert into stylelist values (styles.style,m.lcSynonyms)
>>endscan
>>select stylelist
>>browse
>>
>
>I forgot to mention that the result as to be also with the OleDb provider. Thus, one big SQL to achieve all that.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Responder
Mapa
View