sábado, 29 de agosto de 2015

Oracle \ SQL - Duplicar Tabela

Oracle:

CREATE TABLE ZGCOLIGADA AS
SELECT *
FROM GCOLIGADA
WHERE CODCOLIGADA = 1


SQL:

SELECT * INTO ZGCOLIGADA
FROM GCOLIGADA
WHERE CODCOLIGADA = 1