Copying the Structure Assignment Help

Assignment Help: >> Basics of SQL - Copying the Structure

Copying the Structure

The structure of one table can be copied on to another table without the records being copied. To do this, along with the SELECT statement, add a WHERE clause that yields to any FALSE condition. The following instance explains this:

CREATE TABLE employee3 AS SELECT * FROM employee WHERE 1=2;

This statement create a table known as Employee3 whose structure is the similar as Employee but the records are not copied since WHERE clause evaluates to FALSE.

 

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd