FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
How to use a PostgreSQL sequence
How to use a PostgreSQL sequence
Iniciado por Henk OUWEJAN, 25,mar. 2016 14:12 - 1 respuesta
Conéctese…
Henk OUWEJAN
#1
Miembro registrado
27 mensajes
Publicado el 25,marzo 2016 - 14:12
Hi all,
I'm new (very new) to win/webdev. I'm using PostgreSQL as database. As you know pgSQL use sequences for auto incremental keys. Can somebody explain to me how to use this in webdev.
The function is pgSQL = nextval('single_id_seq'::regclass)
Informar
0
0
Mike Peterson
#2
Publicado el 28,marzo 2016 - 15:59
I use MS SQL Server, but the WebDev handling of the database should be consistent.
After the HAdd where you inserted your new record (without specifying the auto-increment column). You can simply retrieve the Database auto-assigned value by referring to it via the standard Table.Column syntax as the WebDev is now "sitting" on the newly inserted record.
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto