How To Create a Simple Table to Test Triggers in MS SQL Server?
Submitted by: AdministratorIf you want to follow other tutorial examples included in this collection, you need to run this SQL script to create a simple table called ggl_users:
USE GlobalGuideLineDatabase;
GO
DROP TABLE ggl_users;
GO
CREATE TABLE ggl_users (
id INTEGER IDENTITY NOT NULL,
name VARCHAR(80) NOT NULL,
email VARCHAR(80) NULL,
password VARCHAR(32) NULL
);
INSERT INTO ggl_users (name) VALUES ('John King');
INSERT INTO ggl_users (name) VALUES ('Nancy Greenberg');
GO
ggl_users is created now with 2 records.
Submitted by: Administrator
USE GlobalGuideLineDatabase;
GO
DROP TABLE ggl_users;
GO
CREATE TABLE ggl_users (
id INTEGER IDENTITY NOT NULL,
name VARCHAR(80) NOT NULL,
email VARCHAR(80) NULL,
password VARCHAR(32) NULL
);
INSERT INTO ggl_users (name) VALUES ('John King');
INSERT INTO ggl_users (name) VALUES ('Nancy Greenberg');
GO
ggl_users is created now with 2 records.
Submitted by: Administrator
Read Online MS SQL Server Job Interview Questions And Answers
Top MS SQL Server Questions
☺ | How To Create a View on an Existing Table in MS SQL Server? |
☺ | What Are the Advantages of Passing Name-Value Pairs as Parameters? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | How To Create a Large Table with Random Data for Index Testing in MS SQL Server? |
☺ | How To Convert a Numeric Expression from One Data Type to Another? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |
☺ | Sybase Interview Questions. |