bazz
01-31-2008, 04:27 PM
hi,
Difficult to explain... yet a simple issue.
my $var_to_match = 'A';
my $sth = $dbh->prepare("SELECT group_premises_business_id, group_name, premises_name, business_name
FROM $table
WHERE group_name = $var_to_match
")
or die "prepare statement failed: $DBI::errstr\n";
I need to match the first letter of the group_name, with the A of $var_to_match.
bazz
Difficult to explain... yet a simple issue.
my $var_to_match = 'A';
my $sth = $dbh->prepare("SELECT group_premises_business_id, group_name, premises_name, business_name
FROM $table
WHERE group_name = $var_to_match
")
or die "prepare statement failed: $DBI::errstr\n";
I need to match the first letter of the group_name, with the A of $var_to_match.
bazz