hi all
I need to build a key to a table that is not depend on case of the string
so a line with value "ABC" and a line with value "abc" can not exist
I tried to do something like this
'SQL1.ExecNonQuery("CREATE TABLE IF NOT EXISTS alerts1 (artist TEXT NOT NULL , desc TEXT NOT NULL , type TEXT NOT NULL, value TEXT NOT NULL, status TEXT NOT NULL, CONSTRAINT pk_ID PRIMARY KEY (lower(artist),lower(value)))")
but it wont work,
I know I can duplicate the data hold one field with the original case and one with the toLowerCase of it and use the second as a key
any other option ?
I need to build a key to a table that is not depend on case of the string
so a line with value "ABC" and a line with value "abc" can not exist
I tried to do something like this
'SQL1.ExecNonQuery("CREATE TABLE IF NOT EXISTS alerts1 (artist TEXT NOT NULL , desc TEXT NOT NULL , type TEXT NOT NULL, value TEXT NOT NULL, status TEXT NOT NULL, CONSTRAINT pk_ID PRIMARY KEY (lower(artist),lower(value)))")
but it wont work,
I know I can duplicate the data hold one field with the original case and one with the toLowerCase of it and use the second as a key
any other option ?