Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
In my dbc I have a procedure that gets the primary key. It all works great but I would like to make it more generic if possible. In the default value of the prikey field I have GetPriKey("tablename").
Is there a way to replace "tablename" with something like THIS so that if a table gets renamed it will still work? It probably will never happen but I would like to have a better approach.
I considered getting ALIAS() in the top of GetPriKey() and use that but I would not feel confident that ALIAS would always return the table I am adding records to.
This is not a critical problem but something I have been wondering about.
Looking forward to meeting more of you in San Diego.
Thanks...
Tommy
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