what command is used to create a table by copying the
structure of another table including constraints ?

Answer Posted / ben

crete view (view_name) as
select * from (table);

In SQL, a view is a virtual table based on the result-set of an SQL statement.

A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database.

i think this is the right answer

:)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the operator which is used in the query for pattern matching?

505


What is group function in sql?

541


How is data stored on a disk?

542


What is cte sql?

517


Which are the different types of indexes in sql?

563






What is the primary use of normalization?

531


How do you modify a column in sql?

536


describe mysql connection using mysql binary. : Sql dba

552


Is it possible to include an insert statement on the same table to which the trigger is assigned?

561


How to rename a column in the output of sql query?

539


What are the 3 types of behavioral triggers?

666


Is pl sql still used?

511


Explain character-manipulation functions?

636


Can we use rowid as primary key?

547


how can we find the number of rows in a table using mysql? : Sql dba

586