PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 25 → WX - SQL para registros que não estão em outra tabela
WX - SQL para registros que não estão em outra tabela
Iniciado por BOLLER, 05,abr. 2017 13:56 - No hay respuesta
Miembro registrado
3.659 mensajes
Popularité : +175 (223 votes)
Publicado el 05,abril 2017 - 13:56
insert into [dbo].[GPU_SysTablesSysColumns]
(Tabela, Coluna)
select t.name, c.name
from sys.tables t, sys.columns c
where
t.object_id = c.object_id
and t.name not in (select Tabela from GPU_SysTablesSysColumns)
and c.name not in (select Coluna from GPU_SysTablesSysColumns)


:merci:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/