Web Analytics Made Easy -
StatCounter mysql upper lowercase name - CodingForum

Announcement

Collapse
No announcement yet.

mysql upper lowercase name

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resolved mysql upper lowercase name

    I am having an issue with the query seeing upper and lower case named files as the same.

    the server is fine it does allow me to add it to the directory either way and it does see it as different filenames.

    but if i have a value in my table for example Widget and widget and i run a query on that, mysql sees both names as the same.

    i have no strtolower or strtoupper in my script.

    any suggestions? i need mysql to see Widget and widget as different values.
    Last edited by durangod; Sep 6, 2011, 04:06 PM.
    I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
    A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
    durangod is short for durango dave

  • #2
    but if i have a value in my table for example Widget and widget and i run a query on that, mysql sees both names as the same.
    Code:
    SELECT something from somewhere where BINARY filename='somename'
    Check http://dev.mysql.com/doc/refman/5.0/...binary-op.html
    Digitalocean Cloud Hosting (Referral link - get $10 free credit) Fameco

    Comment


    • #3
      FWIW, the ANSI SQL requirement is that text values are *supposed* to be case insensitive. Most DBs provide some way to override the default behavior. MySQL's use of BINARY happens to be one of the simplest.
      Be yourself. No one else is as qualified.

      Comment


      • #4
        thank you both very much
        I am not crazy, my computer had me checked but its on dialup and im still waiting for results :)
        A good way to remember objects from arrays is you shoot objects with arrows Example: $name->id; then Arrays are $name['id'];
        durangod is short for durango dave

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎