In SQL Server we can create a Table using another Table.
Here we can use SELECT INTO Statement.
If we create a new Table with all the Fields and Data of another Table. Then we use...
Or we can use WHERE Clause...
WHERE 1 = 1
Now if we create the Table only the Fields of another Table. Then we use...
Here we can use SELECT INTO Statement.
If we create a new Table with all the Fields and Data of another Table. Then we use...
SELECT * INTO <new_table>
FROM <existing_table>
SELECT * INTO <new_table>
FROM <existing_table>
Now if we create the Table only the Fields of another Table. Then we use...
SELECT * INTO <new_table>
FROM <existing_table>
WHERE 1 = 0
No comments:
Post a Comment