How create table structure only from tableA to TableB if
TableA have some data?

Answer Posted / karthik

Create table emp1
as
select * from emp
where 1=2


It will give the structure of the table.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the process of normalization?

780


Can a database be shrunk to 0 bytes, if not, why?

825


What is the full meaning of dml?

729


What are commit and rollback in sql?

758


What are the advantages of using third-party tools?

734


What is difference between group by and having?

727


How do I create a stored procedure in dbml?

702


What is indexing a document?

730


what information is maintained within the msdb database? : Sql server administration

709


What is explicit cursors?

745


What do you mean by collation recursive stored procedure?

792


Define left outer join in sql server joins?

717


What is query processing?

703


how many layers of tcp/ip protocol combined of? : Sql server database administration

732


Can we perform backup restore operation on tempdb?

749