martes, 5 de noviembre de 2019

insertar y obtener el id

INSERT INTO buzon_out(cuenta_destino)
SELECT cuenta_destino FROM buzon_out_tmp
WHERE tipo='PDF' AND id='5504';SELECT SCOPE_IDENTITY();

fuente

No hay comentarios.:

Publicar un comentario