Query problem, please help.

This is a discussion on Query problem, please help. within the MySQL Database forums, part of the Database Forums category; mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386) gives me: The following database Error occured: ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2006
Raphael Emportu
 
Posts: n/a
Default Query problem, please help.

mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)

gives me:

The following database Error occured:
You have an error in your SQL syntax. Check the manual that corresponds to
your MySQL server version for the right syntax to use near ') and
A.OB_AREAID=C.TR_REFID and C.TR_LANG='de' and

Statement:
select A.*, B.*, C.TR_TEXT from LS_OBJECTS A, LS_OBJECT_TR B,
LS_TRANSLATION C where A.OB_ID=B.OTR_OBJECTID and B.OTR_LANG='de' and
A.OB_ID IN() and A.OB_AREAID=C.TR_REFID and C.TR_LANG='de' and
C.TR_REFNAME='AREA_ID'

Manual check doesn't help much as I do not fully comprehend the query. Is
there someone who can help?
Reply With Quote
  #2 (permalink)  
Old 04-27-2006
Jerry Stuckle
 
Posts: n/a
Default Re: Query problem, please help.

Raphael Emportu wrote:
> mysql Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i386)
>
> gives me:
>
> The following database Error occured:
> You have an error in your SQL syntax. Check the manual that corresponds to
> your MySQL server version for the right syntax to use near ') and
> A.OB_AREAID=C.TR_REFID and C.TR_LANG='de' and
>
> Statement:
> select A.*, B.*, C.TR_TEXT from LS_OBJECTS A, LS_OBJECT_TR B,
> LS_TRANSLATION C where A.OB_ID=B.OTR_OBJECTID and B.OTR_LANG='de' and
> A.OB_ID IN() and A.OB_AREAID=C.TR_REFID and C.TR_LANG='de' and
> C.TR_REFNAME='AREA_ID'
>
> Manual check doesn't help much as I do not fully comprehend the query. Is
> there someone who can help?



You didn't provide a list of items for your IN clause. It needs to be something
like

IN (1, 2, 3, 4)

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
  #3 (permalink)  
Old 04-27-2006
Raphael Emportu
 
Posts: n/a
Default Re: Query problem, please help.

Jerry Stuckle <jstucklex@attglobal.net> wrote in
news:rsqdnc1l2rcPedLZnZ2dnUVZ_vGdnZ2d@comcast.com:

> Raphael Emportu wrote:


<snip for brevity>

>
>
> You didn't provide a list of items for your IN clause. It needs to be
> something like
>
> IN (1, 2, 3, 4)
>


Thanks great, I can work with that answer.

Cu.
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:57 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0