I want to create #1 table In which I want insert customer ids
('123t','23x4','4g56','5k67',.....)
Customer id can be of any length.
This is the code I tried:
CREATE TABLE #1
(
CUSTOMER_ID VARCHAR(255)
)
INSERT INTO #1 (id)
VALUES ('123t', '23x4', '4g56', '5k67', '5k07', '1g36', '21x4')
SELECT * FROM #1
Expected output:
You're trying to insert values into a column named
id
, but your table has a column namedCUSTOMER_ID
. Also, you mentioned that the customer IDs can be of any length, so you should useVARCHAR(MAX)
.