Guest_imported
New member
- Jan 1, 1970
- 0
I get an error ([TCX][MyODBC]Duplicate entry '20020128153002' for key 1) when trying to do this:
update transactions
set price = 200
where transtime >= '2001-01-01'
and transtime <= '2002-01-27'
and customerid = 'moonwalk';
The table definition is:
create table TRANSACTIONS (
TRANSACTIONID timestamp not null,
CUSTOMERID varchar(15) not null,
USERID int,
TRANSTIME date not null,
PRICE int not null,
SEARCHTYPEID int not null,
GENINVOICEID int,
primary key (TRANSACTIONID));
Thats wrong??
update transactions
set price = 200
where transtime >= '2001-01-01'
and transtime <= '2002-01-27'
and customerid = 'moonwalk';
The table definition is:
create table TRANSACTIONS (
TRANSACTIONID timestamp not null,
CUSTOMERID varchar(15) not null,
USERID int,
TRANSTIME date not null,
PRICE int not null,
SEARCHTYPEID int not null,
GENINVOICEID int,
primary key (TRANSACTIONID));
Thats wrong??