Is there a better way of branching other that this:
VB Code:
DECLARE @Type INT SET @Type = 2 If @Type = 1 PRINT 'Number 1' If @Type = 2 PRINT 'Number 2' If @Type = 3 PRINT 'Number 3' If @Type = 4 PRINT 'Number 4'
I need this to work on the following db: MS SQL 7.0, MS SQL 2000, MS SQL 2K5 and possibly MySQL 4.1.
Thanks!




Reply With Quote