---
title: "create a new table from another table"  
description: "create a new table from another table"  
author: "Pawan kumar"  
published: 2011-03-10  
updated: 2013-04-09  
canonical: https://www.mindstick.com/forum/190/create-a-new-table-from-another-table  
category: "mssql server"  
tags: ["mssql server"]  
reading_time: 1 minute  

---

# create a new table from another table

sir i want to create new [table](https://www.mindstick.com/articles/43918/how-to-design-table-using-bootstrap) from another table (only [structure](https://www.mindstick.com/articles/23258/choose-your-business-structure-wisely) of table) and then record of table.\

## Replies

### Reply by Shankar M

Hi Pawan,You can try, In SQL Server,\

```
SELECT * INTO NEWTABLE FROM OLDTABLE WHERE 1 = 0In Oracle (CTAS -Create Table as Select)CREATE TABLE NEWTABLE AS SELECT * FROM OLDTABLE WHERE 1 = 0
```

\
Here 1 = 0 is the condition that is never satisfied, So the data is not inserted into the new table.\
Thanks,Shankar\

### Reply by Anonymous User

Hi Pawan,\
You can use this syntax,\
\

```
CREATE TABLE new_table
  AS (SELECT * FROM old_table);
```

Visit this link for more syntax:

http://www.techonthenet.com/sql/tables/create_table2.php


---

Original Source: https://www.mindstick.com/forum/190/create-a-new-table-from-another-table

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
