Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    select,distinct, duplicate entry

    Code:
    select  distinct g.id_galery_obfuscated,t.term 
    from galery_1 g left join tezaver t on g.id_tezaver = t.id_tezaver
    -->
    Code:
    SQL Error (1062): Duplicate entry '-827066203f9d4804ba331074350202f3-Herderstasje' 
    for key 'distinct_key'
    Code:
    select * from tezaver
    where term like '%herderstasje%'
    
    select * from galery_1
    where id_galery_obfuscated = '827066203f9d4804ba331074350202f3'
    --> both gives me 1 record.

    What does this mean ? Mysql query browser doesn't even give me that, it just says can't execute query.
    Last edited by BubikolRamios; 02-02-2011 at 05:04 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    You get that error when you're trying to INSERT or UPDATE, not when you select data. Are you sure you're not trying to INSERT or UPDATE a unique key?

  • #3
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    Yes.Sure. That error comes from heidi sql, mysql query browser just gives me "can't execute query" as I said.
    If it tells you something more ... if I go with limit 30000 in mysql query browser then it does it OK, but limit 40000 or no limit dies.

    EDIT: mysqlcheck did not make any difference

    EDIT1: if I change from left join to join, or change indexes, same thing, just on different record.
    Last edited by BubikolRamios; 02-02-2011 at 08:11 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #4
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts
    note, changing
    tmp_table_size=18M
    to
    tmp_table_size=36M

    in ini solved the prob, but only on development machine.
    Last edited by BubikolRamios; 02-03-2011 at 01:18 AM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


  •  

    Posting Permissions

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