I have a list of names I want to put into a temp/variable table but can not think of how to do it.
Here is a dummy list....
NAMES
McLovin
Deckard
Mufasa
DeLarge
This is a string I'll get sent to me which I need to wash against actual tables so I wanted to place this in a temp field but I just can not think of how to do it.
CREATE TABLE [#test] (
NAMES varchar (20));
INSERT INTO [#test] ([NAMES])
VALUES ('McLovin');
INSERT INTO [#test] ([NAMES])
VALUES ('Deckard');
The above is the only way I can think of doing it. I am new to SQL so am still learning the logic. Any guidance would be much appreciated.
Cheers.