Case sensitivity in MySQL

Recently I wasted so much time on one problem, that it stayed in my mind. Actually, there was a fault of an inaccurate logging, but this is not the main issue right now. Nearly all the things that we describe in MySQL, are case insensitive. Namely, columns, functions, procedures, names and aliases are not case-sensitive. Trigger is an exception.

But as far as the database and table names are concerned, their case sensitivity depends on the OS.

In MySQL a database corresponds to a folder and a table to at least one file in the database folder. This means that in Windows, case in these names does not matter, whereas on Unix platform, it does.

We could use the MySQL parameter lower_case_table_names, but this one converts everything to lower case and if we are trying to migrate a database, we will have to convert existing database and table names preliminary.

გამოხმაურება

comments

One thought on “Case sensitivity in MySQL

  • Thursday August 4th, 2011 at 08:05 PM
    Permalink

    ამ ბოლოდროს მიწევს mysql თან შეხება და ცოტა მღლის ეგ ამბავი….
    აი ორაკლში ყველაფერი კარგადაა ამ მხრივ გარდა ერთისა… ცხრილის შექმნისას თუ რომელიმე სვეტს სახელი ” ” ით დაარქვი, ჩათვალე ახლიდან უნდა იწვალო.

    “CoLuMn1” რომ დაარქვა არსად არ იმუშავებს თუ ისევე არ დაწერე მერე და dbms_sql ით თუ ალოგირებ სადმე და მერე უშვებ ეგ საერთოდ ჯოჯოხეთია :))

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *