---
title: "建表-复制建表"
author: "terryjs"
date: "2016-11-29T16:26:41Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: true
lastmod: "2016-11-29T16:27:26Z"
id: 2341824
url: "https://terryjs.iteye.com/blog/2341824"
---

Oracle:

 

```
CREATE TABLE new_table

  AS (SELECT * FROM old_table where 1 <> 1);
```

 

 

 

Sqlserver:

 

```
SELECT *
INTO newtable [IN externaldb]
FROM table1

Where 1 <> 1;
```