Techinnoreview

SQL

Project 2 save

โพสต์‎‎23 ก.ค. 2552, 22:12‎‎โดยauttapong maesincee

คำสั่งลบข้อมูลทุก record

โพสต์‎‎23 ก.ค. 2552, 21:14‎‎โดยauttapong maesincee

DELETE FROM Sales_Fact
DELETE FROM Shipper_Dim
DELETE FROM Customer_Dim
DELETE FROM Employee_Dim
DELETE FROM Product_Dim
DELETE FROM Categories_Dim
DELETE FROM Time_Dim
 
ต้องเริ่มต้นลบตัวที่มีการอ้างข้อมูลตามลำดับ ไม่งั้นจะติด accessibility

Create By Script

โพสต์‎‎23 ก.ค. 2552, 20:53‎‎โดยauttapong maesincee

กด execute ได้เลย
 
 
create
table Product_Dim

(

ProductKey

int not null identity(1,1) primary key nonclustered,

ProductID

int not null,

CategoryID

int not null,

ProductName

nvarchar(40) not null,

SupplierName

nvarchar(40) not null,

ListUnitPrice

money not null

)

‹ ก่อนหน้า    1-3 จาก 3    ถัดไป ›