If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > <> question?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-04, 16:22
xayavon xayavon is offline
Registered User
 
Join Date: Dec 2003
Posts: 23
<> 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
Reply With Quote
  #2 (permalink)  
Old 01-26-04, 16:50
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
in sql, instead of x<>y, you can write not x=y
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 02-04-04, 10:29
xayavon xayavon is offline
Registered User
 
Join Date: Dec 2003
Posts: 23
Then how would I write less than or greater than? Does "&lt;" and "&gt;" work for mysql?
Reply With Quote
  #4 (permalink)  
Old 02-04-04, 10:43
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
to write "less than or greater than" in mysql, you would actually write <>

no, mysql does not work with html entities
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On