Your format will work to create a new temp table for one insert. If you need to copy and paste identifiers, then the following will work.
CREATE TABLE
Copy and paste your PIDs and use regular expression search and replace to replace each line with the regular expression option. Delete the last ',' and you are good.
Find - ^ {U: z +} $
Replace - ('\ 1'), \ n
Alternatively, you can force the sql server to read your identifiers from a file on the system. If you talk in detail about your needs, I can give you a better answer.
source share