Results 1 to 4 of 4

Thread: <> question?

  1. #1
    Join Date
    Dec 2003
    Posts
    23

    Unanswered: <> question?

    Hello everyone,
    I'm writing my sql statement in an xml file therefore I can't use the <> sign. I was wondering if "&lt;&gt;" is the equivilant of "<>". If not, then what is?

    Thanks,

    xayavon

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    in sql, instead of x<>y, you can write not x=y
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Dec 2003
    Posts
    23
    Then how would I write less than or greater than? Does "&lt;" and "&gt;" work for mysql?

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    to write "less than or greater than" in mysql, you would actually write <>

    no, mysql does not work with html entities
    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
  •