Row value as column name
DECLARE @ISBN varchar(20) = 'a,bbbb,ccc,ddd,ee'I have string with commas like above.
I need this each value as column name like :
a bbbb ccc ddd ee
DECLARE @ISBN varchar(20) = 'a,bbbb,ccc,ddd,ee'
SET @ISBN='SELECT ' +@ISBN+ ' from yourtablename';
Execute @ISBN;