Results 1 to 2 of 2

Thread: if-then-else

  1. #1
    Join Date
    Feb 2004
    Posts
    5

    Unanswered: if-then-else

    what's the syntax of mysql if-then-else??

    I follow the manual:
    http://www.mysql.com/doc/en/IF_Statement.html#IDX1878

    if 0>1 then
    insert into ...;
    end if;

    it's not work.

    any1 help?

    thx

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    zero will never be greater than one

    i would say it worked just fine
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •