P
pt
I have a table "T" with an autonum primary key field "ID" and a
text/string field "v". The field "v" is indexed and declared UNIQUE.
Is there a syntax which will allow me to add records and ignore (or
not add) any which would violate the "unique" aspect of "v"?
Table "T":
ID v
----
1 I
2 am
3 the
4 walrus
5 oo
6 koo
7 katchoo
Given this table, I run this :
INSERT INTO T (v) VALUES ("The" , "walrus" , "was" , "Paul") ;
The insertion of "walrus" will fail because it already exists, and "v"
is indexed/no_dups. I want the SQL to insert records for "The",
"was", and "Paul", and not error when in sees "walrus" already present
at record #4.
I'm doing this with Perl + DBI/DBD (not ODBC) talking to a MS-Access
..MDB file.
Thanks in advance.
text/string field "v". The field "v" is indexed and declared UNIQUE.
Is there a syntax which will allow me to add records and ignore (or
not add) any which would violate the "unique" aspect of "v"?
Table "T":
ID v
----
1 I
2 am
3 the
4 walrus
5 oo
6 koo
7 katchoo
Given this table, I run this :
INSERT INTO T (v) VALUES ("The" , "walrus" , "was" , "Paul") ;
The insertion of "walrus" will fail because it already exists, and "v"
is indexed/no_dups. I want the SQL to insert records for "The",
"was", and "Paul", and not error when in sees "walrus" already present
at record #4.
I'm doing this with Perl + DBI/DBD (not ODBC) talking to a MS-Access
..MDB file.
Thanks in advance.