14 messages in org.openoffice.fr.progRe: [prog] syntaxe SQL et *... et req...
FromSent OnAttachments
nicolasAug 24, 2006 3:53 am 
Manuel NAUDINAug 24, 2006 4:13 am 
nicolasAug 24, 2006 4:40 am 
nicolasAug 24, 2006 5:19 am 
Manuel NAUDINAug 24, 2006 5:25 am 
Manuel NAUDINAug 24, 2006 5:30 am 
NicolasAug 26, 2006 3:13 pm 
Alex ThurgoodAug 27, 2006 1:57 am 
Manuel NAUDINAug 27, 2006 5:41 am 
NicolasAug 27, 2006 8:29 am 
Manuel NAUDINAug 27, 2006 8:44 am 
NicolasAug 27, 2006 8:57 am 
Manuel NAUDINAug 27, 2006 9:20 am 
NicolasAug 28, 2006 1:43 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] syntaxe SQL et *... et requete SQL ignorant la casseActions...
From:Manuel NAUDIN (audi@gmail.com)
Date:Aug 27, 2006 5:41:27 am
List:org.openoffice.fr.prog

Bonjour,

Le 27/08/06, Alex Thurgood <alex@free.fr> a écrit :

Nicolas wrote:

Bonjour,

Comme je pressens que non, j'ai dans l'idée de refaire ma table en formattant les champs sur lesquels s'applira la requete en VARCHAR_IGNORECASE, mais qu'en est il du type de champ LONGVARCHAR, est il par défaut sensible a la casse??

Tiré de la doc HSQLDB : Il est conseillé de ne pas utiliser des indexes sur des colonnes LONGVARBINARY, LONGVARCHAR et OTHER, puisque ceux-ci ne seront probablement plus supportés dans des versions futures.

Avec des modifs de la table du genre :

ALTER TABLE MATABLE CHANGE MACOLONNE MACOLONNE VARCHAR_IGNORECASE(250)

cela ne ferait-il pas l'affaire ? Ou est-ce que, en faisant ainsi, tu perds les données déjà dans la table ?

pour une base intégrée : <doc hsqldb>

ALTER TABLE <tablename> ALTER COLUMN <columnDefinition>;

This form of ALTER TABLE ALTER COLUMN accepts a columnDefinition<http://www.hsqldb.org/doc/guide/ch09.html#columnDef-entry>as in a CREATE TABLE command, with the following restrictions.

*Restrictions*

- The column must be already be a PK column to accept an IDENTITY definition. - If the column is already an IDENTITY column and there is no IDENTITY definition, the existing IDENTITY attribute is removed. - The default expression will be that of the new definition, meaning an existing default can be dropped by ommission, or a new default added. - The NOT NULL attribute will be that of the new definition (similar to previous item). - Depending on the type of change, the table may have to be empty for the command to work. It always works when the type of change is possible in general and the individual existing values can all be converted.

</doc hsqldb>

je n'ai pas essayé mais le dernier point me fait penser que il doit être possible de modifier un champ VARCHAR en VARCHAR_IGNORECASE sans perdre les données.

Pour Nicolas : commande à exécuter par Outils > SQL ...