Re: [sqlite] WHERE = does not work

2010-04-30 Thread ecforu
Grumman Mission Systems > > > > > From: sqlite-users-boun...@sqlite.org on behalf of ecforu > Sent: Fri 4/30/2010 8:53 AM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] WHERE = does not work > > > > I don't think it is a case issue. See be

Re: [sqlite] WHERE = does not work

2010-04-30 Thread ecforu
re resourceType like 'PSM'; > PSM > psm > sqlite> select * from t where upper(resourceType) = 'PSM'; > PSM > psm > > Michael D. Black > Senior Scientist > Northrop Grumman Mission Systems > > > > > From:

Re: [sqlite] WHERE = does not work

2010-04-30 Thread ecforu
you have to use the % sign as a wildcard. So > resourceType LIKE %'PSM' returns anything ending in PSM. The SQLite website > has excellent docs on standard SQL. > > -Original Message- > From: ecforu > Sent: Friday, April 30, 2010 09:22 > To: sqlite-users@sq

[sqlite] WHERE = does not work

2010-04-30 Thread ecforu
I have an sqlite3 database which I can't query with WHERE =. I have to use WHERE like. Any ideas why this is? For example I have a resourceType column that has as some of its entries (over 50) 'PSM'. SELECT * FROM MyTable WHERE resourceType = 'PSM' --> returns nothing. SELECT * FROM MyTable W