SQL COMPACT CRIAR TABELA
                    Viva
Estou usando o SQL COMPACT
Quero criar uma tabela através de outra, tentei da seguinte forma mas está dando erro, alguém me pode ajudar com a sintaxe.
CREATE TABLE temp
AS
SELECT * FROM situation;
                
            Estou usando o SQL COMPACT
Quero criar uma tabela através de outra, tentei da seguinte forma mas está dando erro, alguém me pode ajudar com a sintaxe.
CREATE TABLE temp
AS
SELECT * FROM situation;
                    Olá,
select * into tabela from tabela1
Até,
Rogério
            select * into tabela from tabela1
Até,
Rogério
                    System.Data.SqlServerCe.SqlCeException was unhandled
Message=There was an error parsing the query. [ Token line number = 1,Token line offset = 10,Token in error = into ]
Dá erro.Lembro que estou usando SQLcompact
  
                
            Message=There was an error parsing the query. [ Token line number = 1,Token line offset = 10,Token in error = into ]
Dá erro.Lembro que estou usando SQLcompact
                    INSERT INTO situation
(id, data, tipo)
SELECT id, data, tipo
FROM temp
é assim.
O objectivo principal era adicionar uma coluna antes da coluna tipo.
Tentei assim
ALTER TABLE situation ADD COLUMN cod_tipo int AFTER tipo;
mas não deu
            (id, data, tipo)
SELECT id, data, tipo
FROM temp
é assim.
O objectivo principal era adicionar uma coluna antes da coluna tipo.
Tentei assim
ALTER TABLE situation ADD COLUMN cod_tipo int AFTER tipo;
mas não deu
                        Tópico encerrado , respostas não são mais permitidas
                    
                
