Transact-SQL Update And Delete Data from A Table Examples


Tool : Microsoft SQL Server Management Studio (SSMS)

Transact-SQL Create Database And Create Table Examples

Transact-SQL Insert Data Into Table Examples

Transact-SQL Retrieve Data From A Table Examples

Update Records in The Table [Departments]

/* Update records in the table [Departments] in the database [SampleDB] */

Use [SampleDB]
Go
Update [Departments]
Set Name = 'Research and Development'
Where Name = 'Research & Development'

Delete Data from The Table [Employees_Backup]

/* Delete data from the table [Employees_Backup] */

Use [SampleDB]
Go
Delete From [Employees_Backup]
Where FirstName = 'Big'

張貼留言

0 留言