0

I have a table with a column named "Shortcut". I want these IDs to be case-sensitive (so say shortcut myshortcut is different from Myshortcut).

Right now, when I select a row with the shortcut, it is not case sensitive. So in my example above, both shortcuts refer to the same field.

What can I do?

Thanks

user1083320
  • 1,836
  • 8
  • 22
  • 29

1 Answers1

1

You can use one of the binary types (varbinary) instead of the text (varchar) types. Alternatively, change the collation on the text column to binary (column_name varchar(16) binary). See the documentation on binary collations.

derobert
  • 49,731
  • 15
  • 94
  • 124