Reputation: 3728
How do I create table in different schema of local database using linked database ?
create table schema1.table1 select * from schema.table@LinkedDB;
Upvotes: 2
Views: 14008
Reputation: 332731
You were close - use:
CREATE TABLE schema1.table1 AS (SELECT * FROM SCHEMA.table@LinkedDB);
You can read more about it here.
Upvotes: 4