LOGIN | REGISTER

Results 1 to 2 of 2

Thread: was up

  1. #1

    was up

    Hows it goin?

  2. #2
    Join Date
    Mar 2012
    Location
    Stayin' Classy in San Diego
    Posts
    1,499
    DECLARE
    @banana AS varchar(6)
    ,@N AS INT

    SET @banana = 'Banana'
    SET @N = 3
    WHILE @N > 0
    BEGIN
    PRINT 'Knock Knock.'
    PRINT 'Who''s there?'
    PRINT @banana
    PRINT @banana + ' who?'
    SET @N = @N - 1
    END;

    SET @banana = 'Orange'
    PRINT 'Knock Knock.'
    PRINT 'Who''s there?'
    PRINT @banana
    PRINT @banana + ' who?'
    PRINT @banana + ' you glad I didn''t say bernaner?'
    GO

    HYUK, HYUK, HYUK