Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Paul] SELECT DISTINCT

Quote Reply
Re: [Paul] SELECT DISTINCT In reply to
Sorry, I just wrote that as an example. What I actually did was write the fieldname (no $column) but it still doesn't work.

my $sth = $table->select ( GT::SQL::Condition->new ('DISTINCT fieldname','LIKE',"$letter%") );

Anyway, just to simplify my question -

Why does this work -

my $sth = $table->select ('DISTINCT fieldname');

but this doesn't -

my $sth = $table->select ( GT::SQL::Condition->new ('DISTINCT fieldname') );

Thanks

Simon.
Subject Author Views Date
Thread SELECT DISTINCT jai 6067 Feb 9, 2003, 8:58 PM
Thread Re: [jai] SELECT DISTINCT
jai 5947 Feb 11, 2003, 1:28 AM
Thread Re: [jai] SELECT DISTINCT
Paul 5969 Feb 11, 2003, 2:16 AM
Thread Re: [Paul] SELECT DISTINCT
jai 5900 Feb 11, 2003, 3:44 PM
Thread Re: [jai] SELECT DISTINCT
Paul 5907 Feb 11, 2003, 3:53 PM
Thread Re: [Paul] SELECT DISTINCT
jai 5921 Feb 11, 2003, 8:18 PM
Thread Re: [jai] SELECT DISTINCT
jai 5873 Feb 14, 2003, 5:41 AM
Post Re: [jai] SELECT DISTINCT
Paul 5913 Feb 14, 2003, 5:51 AM