FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
Identitiy Fields problems with PostgreSQL
Identitiy Fields problems with PostgreSQL
Débuté par Antonio Díaz, 02 fév. 2024 21:09 - 2 réponses
Connectez-vous…
Antonio Díaz
#1
Membre enregistré
71 messages
Posté le 02 février 2024 - 21:09
Hi, I am not an experienced windev user (yet). I have a postgresql db. When adding a record through a form, the identity field is not being incremented, so I get the duplicate error (identity field value is 0, the first add was ok since 0 value didn't exist).
I went to pg admin and typed an INSERT statement and the field was incremented without issues. Is there something I should consider in the analysis that I might be missing? I thank you in advance.
--
Antonio Diaz
Emphasys Software, S.C.
Signaler
0
0
Jacky
#2
Posté le 06 février 2024 - 11:15
Bonjour .
la colonne doit être de type bigserial NOT NULL UNIQUE
Postrges créera la séquence et la contrainte PK
Signaler
0
0
Antonio Díaz
#3
Membre enregistré
71 messages
Posté le 07 février 2024 - 03:51
Thank you, I will try that...
--
Antonio Diaz
Emphasys Software, S.C.
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
WEBDEV (précédentes versions)
WINDEV Mobile (précédentes versions)
Etats & Requêtes
Hors-sujet
Outils
WINDEV 26
WINDEV 2024
WINDEV 2024
WINDEV 2024
WINDEV 25
WEBDEV 2024
WEBDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
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