Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default illegal query

    Hello,

    I'm kind of new to mySQL but more used to Sybase/PHP
    What is illegal about this query or can i not use combined query's in mySQL?

    DELETE FROM manufacturers
    WHERE manufacturers_id NOT IN ( SELECT manufacturers_id
    FROM
    products )

    Kind Regards
    Joost Wolthuis



    joost Guest

  2. Similar Questions and Discussions

    1. Illegal Name
      What is see is CFIF NOT IsDefined ("SESSION.ahh")> CFLOCK scope="session" throwontimeout="no" timeout="10"
    2. Illegal XML even with XMLFormat()
      I've had the same issue What I end Up doing is Creating a Filter for the XML Data that get's written which will remove character 30's (the real...
    3. Help with an illegal 'operand'?
      Does anyone know why I'm getting this error message - Can't open illustration. The illustration contains illegal operand. Offending operator :...
    4. illegal seek
      I was debugging a totally unrelated problem yesterday and put in a quick and dirty print line with $! in it. Now as it happened the bit of code I...
    5. illegal
      I bought my computer 2 months ago and I have just tried to download xp service pack and I am being told that my xp is illegal. when I bought the...
  3. #2

    Default Re: illegal query

    In comp.lang.php joost wrote:
    > I'm kind of new to mySQL but more used to Sybase/PHP
    > What is illegal about this query or can i not use combined query's in mySQL?
    >
    > DELETE FROM manufacturers
    > WHERE manufacturers_id NOT IN ( SELECT manufacturers_id
    > FROM
    > products )
    Many versions of MySQL don't support subselects. I think some of the
    newest bleeding-edge versions do, but 3.x (which is probably what you're
    running, as 4.0 is still fairly young) doesn't, period, IIRC.

    ....dave
    David E. Smith 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