Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Hi Neighbor:
>>set relation to padl(alltrim(str(val(usr_pk))),5,'0') into userprefs
Yeah, thats what I was thinking of doing. Then create a compound index on the child thats that converts the integer key to char and concatenates the last name field. If I have set exact off then the seek will match the parent on the first half of the index leaving the second half to order the child table on last name.
>>The other alternative is to build the child cursor (without indexes) each >>time a user changes records in the parent table. If the user selected a >>different row, you could call the SP that builds the child cursor again. >>AfterRowColChange event.
That would mean excessive round trips to the server.
Thanx,
Charlie
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement