Query problem, please help.

Ask a Question related to MySQL, Design and Development.

  1. #1

    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?
    Raphael Emportu Guest

  2. Similar Questions and Discussions

    1. ***Sql Query problem
      Randy Webb wrote: SELECT DISTINCT OrderID FROM trans WHERE Trans_ID = 1 AND OrderID NOT IN (SELECT DISTINCT OrderID FROM trans WHERE Trans_ID =...
    2. Query of Query problem
      Error Executing Database Query. Query Of Queries runtime error. Table named "DATA" was not found in Memory. It is misspelled, or the table is...
    3. Query on Query and CF casting problem
      I am using a custom tag in MX7 that was working fine in 5 that renders a table. The input to the custom tag is a query and it's columns along with...
    4. query problem
      SELECT top5.PRODID, p.PRODNAME FROM ( SELECT TOP 5 SALES = COUNT(*), PRODID FROM SALES GROUP BY PRODID ORDER BY SALES DESC ) AS top5 INNER JOIN...
    5. Query problem.
      column 1 column2 column 3 column 4 1 current 1.0 yr1 1 previous ...
  3. #2

    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.
    [email]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  4. #3

    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.
    Raphael Emportu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139