Re: Can't delete row with DBI.pm

2012-07-25 Thread Tessio F.
2012/7/17 Rob Dixon > On 18/07/2012 00:18, Tessio F. wrote: > >> Hello, >> I have an database with a two column primary key: >> >> create database contacts( >> username char(20) not null, >> contact char(20) not null, >> primary key (username, contact) >> ); >> >> I'm trying to delete a row with

Re: Can't delete row with DBI.pm

2012-07-21 Thread Dr.Ruud
On 2012-07-18 01:18, Tessio F. wrote: Hello, I have an database with a two column primary key: create database contacts( username char(20) not null, contact char(20) not null, primary key (username, contact) ); I'm trying to delete a row with the command: (connect to db..) my $sth = $dbh->prepa

Re: Can't delete row with DBI.pm

2012-07-17 Thread Rob Dixon
On 18/07/2012 00:18, Tessio F. wrote: Hello, I have an database with a two column primary key: create database contacts( username char(20) not null, contact char(20) not null, primary key (username, contact) ); I'm trying to delete a row with the command: (connect to db..) my $sth = $dbh->prepa

Can't delete row with DBI.pm

2012-07-17 Thread Tessio F.
Hello, I have an database with a two column primary key: create database contacts( username char(20) not null, contact char(20) not null, primary key (username, contact) ); I'm trying to delete a row with the command: (connect to db..) my $sth = $dbh->prepare("DELETE FROM contacts