little tips and tricks, which i stumbled upon randomly

Thursday, June 14, 2012

SYBASE IQ - Split coma seperated values in to rows

To split delimiter separated values in to rows use sa_split_list function

Usage:

SELECT * 
  FROM sa_split_list( 'Tee Shirt,Baseball Cap,Visor,Shorts' );

line_numrow_value
1Tee Shirt
2Baseball Cap
3Visor
4Shorts
For detailed intormation check Sybase Documentation.

0 comments:

Post a Comment