Skip to content

SQL Server Table Type Variables

DECLARE @person_info table(
	person_id int,
	person_name varchar(20),
	person_surname varchar(20),
	person_age tinyint,
	person_from varchar(30)

INSERT INTO @person_info VALUES(1,'Furkan','Gulsen',22,'TURKEY')
SELECT * FROM @person_info

INSERT INTO @person_info VALUES(2,'Oliver','Allen',34,'ITALY')
SELECT * FROM @person_info

INSERT INTO @person_info VALUES(3,'Maria','Queen',34,'FRANCE')
SELECT * FROM @person_info

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: