How to create permanent table in MicroSoft SQL Server database?
CREATE TABLE
dbo.Table_Name
(
Column_Name1 DATATYPE,
Column_Name2 DATATYPE)
)
How to create temporary table in MicroSoft SQL Server database?
In Microsoft SQL Server database, temporary tables are available in two types. Based on requirement user can create either one.
Following are two types of temporary tables available in Microsoft SQL Server database.
How to create Local temporary table object in Microsoft SQL Server Database?
Using single pound sign (#) along with the name of the table, Local temporary table can be created. As shown in below example how to create a local temporary table.
Example For Temporary Table:
CREATE TABLE #emp_hist
(
empno INT,
empname VARCHAR(40)
)
Following are two types of temporary tables available in Microsoft SQL Server database.
- Local Temporary Table
- Global Temporary Table
How to create Local temporary table object in Microsoft SQL Server Database?
Using single pound sign (#) along with the name of the table, Local temporary table can be created. As shown in below example how to create a local temporary table.
Example For Temporary Table:
CREATE TABLE #emp_hist
(
empno INT,
empname VARCHAR(40)
)
No comments:
Post a Comment