Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. If you don't need the UID of newly created records, definitely a multi-valued insert -- just remember that there _is_ a max_packet_length, but it's usually a mb or two, so it's usually not an issue.
  2. How are you making the backup?
  3. I was confused because it wasn't an ENUM. You can use "SUM(IF(result='won',1,0) AS won", etc.
  4. Read this.
  5. You still haven't told us anything helpful -- what's in result?
  6. Show table structure, sample data, etc.
  7. DON'T mark topics "solved" unless you post the solution...
  8. Did you try using ORDER BY inside the GROUP_CONCAT() ???
  9. Why would you want to do such a thing?
  10. Check the counts.... not sure how much control you have of input via phpmyadmin.
  11. No idea... I don't understand any of that. All I'm saying is that you need to confirm that the input you provide to the DB class is what you expect, but that the output isn't -- which means it's flawed.
  12. how about this? select g.name from group as g cross join member as m1 cross join member as m2 inner join groupmembermap as gm1 on ( gm1.group_id = g.id and gm1.member_id = m1.id ) inner join groupmembermap as gm2 on ( gm1.group_id = g.id and gm1.member_id = m1.id ) where m1.name = 'a' and m2.name = 'b'
  13. group concat can take an order by!
  14. Depends if you have a unique index or not... if so, index ignore should work.
  15. From what query?
  16. Then it's broken.
  17. Depends on what character set they fall into.
  18. How do you store that info?
  19. TLDR... can you summarize?
  20. There's really no different on the client side -- just point to a different host name -- but you need to make sure that the remote host allows remote connections.
  21. Post the table structure as is required by the stickies.
  22. count(distinct fanof) from yourtable group by username
  23. Yup.
  24. Where's the mysql part of the problem?
  25. Let's not get into the habit of posting entire scripts here, please.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.