Unix Technical Forum

Syntax Problem

This is a discussion on Syntax Problem within the MySQL General forum forums, part of the MySQL category; --> I have a query running within a project from a Windows machine retrieving data from a Linux Source the ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:22 AM
JugLugs
 
Posts: n/a
Default Syntax Problem


I have a query running within a project from a Windows machine retrieving
data from a Linux Source the query works perfectly. If i upload the exact
same project to the Linux machine and run it the query doesnt work ??!!??

the query string is ...

SELECT DISTINCT ID, BatchID FROM Contacts WHERE ((Rejected < 1 AND Rejected
IS NOT NULL) OR rejected IS NULL) AND ((Status = 'Verified' OR Status =
'Verified & Modified' OR Status IS NULL) AND (UploadedDate BETWEEN 355709
AND 355789) AND (Deleted <> 1 OR Deleted IS NULL) AND (Type = 'User'))

Please help am i going mad ?

Cheers

JugLugs
--
View this message in context: http://www.nabble.com/Syntax-Problem....html#a7755229
Sent from the MySQL - General mailing list archive at Nabble.com.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:22 AM
Martijn Tonies
 
Posts: n/a
Default Re: Syntax Problem


> I have a query running within a project from a Windows machine retrieving
> data from a Linux Source the query works perfectly. If i upload the exact
> same project to the Linux machine and run it the query doesnt work ??!!??
>
> the query string is ...
>
> SELECT DISTINCT ID, BatchID FROM Contacts WHERE ((Rejected < 1 AND

Rejected
> IS NOT NULL) OR rejected IS NULL) AND ((Status = 'Verified' OR Status =
> 'Verified & Modified' OR Status IS NULL) AND (UploadedDate BETWEEN 355709
> AND 355789) AND (Deleted <> 1 OR Deleted IS NULL) AND (Type = 'User'))
>
> Please help am i going mad ?


Always include the error message when asking for help.

My first guess would be case sensitive table names -> on Linux,
case matters, on Windows it doesn't. Ain't that nice.

Martijn Tonies
Database Workbench - development tool for MySQL, and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:22 AM
JugLugs
 
Posts: n/a
Default Re: Syntax Problem


Field was wrongly named - Cheers!

--
View this message in context: http://www.nabble.com/Syntax-Problem....html#a7756233
Sent from the MySQL - General mailing list archive at Nabble.com.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com