try
SELECT team_id,name FROM team WHERE deleted <> 1 ORDER BY name

-----Original Message-----
From: Steve Buehler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: SELECT and WHERE clause


Ok.  I can NOT find out what I am doing wrong.  The book makes it look like
any of these would work (deleted is a column name):
SELECT team_id,name FROM team WHERE deleted NOT LIKE '1' ORDER BY 'name'
SELECT team_id,name FROM team WHERE deleted != '1' ORDER BY 'name'
SELECT team_id,name FROM team WHERE deleted <> '1' ORDER BY 'name'

the deleted column is:
deleted tinyint(1) unsigned default NULL,

I changed the column name to just "d" to make sure that "deleted" wasn't a
reserved word, and it still didn't work.


Any help would be appreciated.

Thanks
Steve

mysql, sql, query


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to