FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
HFSQL: re-use automatic id
HFSQL: re-use automatic id
Débuté par Piet van Zanten, 18 sep. 2017 11:27 - Aucune réponse
Connectez-vous…
Piet van Zanten
#1
Posté le 18 septembre 2017 - 11:27
Hi,
I'm implementing an undo function.
Among other things it can restore deleted records from a buffer.
Now I was wondering if it would be safe to re-use the automatic identifier from the original record.
HFSQL never uses the id's of deleted records again, so I'm guessing it would be safe.
No big deal, since we will not likely run out of id's.
I guess I still have an compulsory urge to re-use and optimize. (from my early programming days)
Also, it's not entirely clear to me what exactly is the difference between hSetIdAuto and hForceIdAuto.
If I understand correctly the difference is that hSetIDAuto will always use the highest id+1 an hForceIdAuto will do the same, but ignoring the manually added id.
Kind regards,
Piet
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte