SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE Employees ( EmployeeID INT PRIMARY KEY, FirstName VARCHAR(50), LastName VARCHAR(50), Department VARCHAR(50), Salary DECIMAL(10, 2) ) begin tran; INSERT INTO Employees (EmployeeID, FirstName, LastName, Department, Salary) select 2, 'Jane', 'Smith', 'HR', 50000.00; --select * from Employees; INSERT INTO Employees (EmployeeID, FirstName, LastName, Department, Salary) select 'Mike', 'Johnson', 'Finance', 70000.00; rollback tran; go select * from Employees;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear