Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   MySQL (https://www.clubdelphi.com/foros/forumdisplay.php?f=21)
-   -   Login y Diferenciar Mayúsculas, Minúsculas, Acentos.. ETC (https://www.clubdelphi.com/foros/showthread.php?t=89564)

AgustinOrtu 16-12-2015 16:10:03

Extract del enlace que deje mas arriba


Cita:

For nonbinary strings (CHAR, VARCHAR, TEXT), string searches use the collation of the comparison operands. For binary strings (BINARY, VARBINARY, BLOB), comparisons use the numeric values of the bytes in the operands; this means that for alphabetic characters, comparisons will be case sensitive.

[...]

Simple comparison operations (>=, >, =, <, <=, sorting, and grouping) are based on each character's “sort value.” Characters with the same sort value are treated as the same character. For example, if “e” and “é” have the same sort value in a given collation, they compare as equal.


The default character set and collation are latin1 and latin1_swedish_ci, so nonbinary string comparisons are case insensitive by default. This means that if you search with col_name LIKE 'a%', you get all column values that start with A or a. To make this search case sensitive, make sure that one of the operands has a case sensitive or binary collation


If you want a column always to be treated in case-sensitive fashion, declare it with a case sensitive or binary collation

Casimiro Notevi 16-12-2015 16:24:20

Cita:

Empezado por AgustinOrtu (Mensaje 500611)
Extract del enlace que deje mas arriba

Pero eso es para mysql.
Firebird no es así.

AgustinOrtu 16-12-2015 16:31:04

Depende, hay collations que son case-insensitive: Character Set UTF8, Collation UNICODE_CI

Enlace

Casimiro Notevi 16-12-2015 16:55:52

Cita:

Empezado por AgustinOrtu (Mensaje 500614)
Depende, hay collations que son case-insensitive: Character Set UTF8, Collation UNICODE_CI
Enlace

Eso sí, no lo había entendido ^\||/


La franja horaria es GMT +2. Ahora son las 12:14:50.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi