android


SQLite NOT LIKE statement in android


I tried the following method to query for functiontitles not beginning with "Exhibitor Daily".
public Cursor fetchAllSchedulesByDate(String newConfDate){
Cursor mCursor = db.query(SQLITE_TABLE, new String[] {
KEY_ID, KEY_functiontitle, KEY_fucntioindate, KEY_functionStartTime, KEY_functionEndTime, KEY_functiondescription, KEY_LOCATIONNAME },
KEY_fucntioindate + " = " + newConfDate + " AND " + KEY_functiontitle + " NOT LIKE 'Exhibitor Daily%'", null, null, null, null, null);
if (mCursor != null) {
mCursor.moveToFirst();
}
return mCursor;
}
However, it seems to be ignoring the NOT LIKE clause in the query and the results set contains functiontitles beginning with "Exhibitor Daily" which is not what is expected. If I replace the NOT LIKE clause with LIKE 'Exhibitor Daily%', it works correctly as expected and the results set contains only titles beginning with Exhibitor Daily. Can't see what could be wrong.

Related Links

CheckedTextView with ListView
How to calculate the size of libraries that is added as a dependency in the Android project
Show the ListView and my bar together doesn't work
Toggle Inside Fragment
How to do a scroll animation in Android?
Remove Marker Google Map api v2 - Android
Android: How to call non static method of an activity from AsyncTask (via doInBackground)
Android Unable to instantiate receiver [duplicate]
Open Facebook Messenger in Android
Android Push Notification with Azure Notification Hub
How to change Toolbar home icon(back arrow) color in new material theme?
What is the safest, simplest, most versatile proguard config?
Why does 'adb devices' show 'unauthorized' with no 'allow' prompt on the device?
Something wrong about Hashmap. But I can't replaced
Create a file and insert text in android
Can realm store 2 GB of data in android using an external SD? [closed]

Categories

HOME
sonarqube
microsoftgraph
wakanda
apache-spark-mllib
graphics
google-cloud-functions
soa
permissions
jax-ws
nfs
sendgrid-api-v3
fhir
redis-sentinel
stellar.js
modbus-tcp
dynamic-sql
feathersjs
sencha-touch
boost-icl
apache2.4
poedit
ksh
dataflow-diagram
event-store
asymptotic-complexity
nstimer
progress-bar
inversion-of-control
openmdao
xbox
python-2.6
kodi
erb
papaparse
login-script
arduino-ide
xajax
imagenet
ideascript
android-augmented-reality
jvmti
sharp-snmp
double-click
podscms
semantic-logging
libjpeg
pybrain
py2neo
baidu
restore
vcloud-director-rest-api
meteor-packages
parfor
myspace
flex4.6
burrows-wheeler-transform
android-dateutils
lean
swizzling
nupic
np-spring
dllimport
binomial-theorem
bufferedinputstream
user-permissions
delayed-execution
mruby
strawberry-perl
create.js
ss7
android-usb
ora-06550
scriptaculous
node-blade
abstract-data-type
server-administration
apache-abdera
resource-management
wimax
extreme-programming
pstack
inkcanvas
virtualpathprovider
pinch
pos-for-.net
cldc
windows-identity
linfu-dynamicproxy

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App