Puede usar UNPIVOT.SELECT result FROM tablename UNPIVOT (result FOR colnames IN (id, col1, col2, col3));