I wish to do something like the following:
declare @FrameNumber nvarchar(20) set @FrameNumber = \'(p1, p2)\' select from myTable where c1 in @FrameNumber
DECLARE @FrameNumbers TABLE (code NVARCHAR(20) PRIMARY KEY) INSERT INTO @framenumbers VALUES ('p1') INSERT INTO @framenumbers VALUES ('p2') SELECT * FROM mytable WHERE c1 IN ( SELECT code FROM @framenumbers )