Hi,
Are you asking if your 1st or 2nd query is faster?
BTW I would personally do:
my $Links = $DB->table('Links');
$Links->select_options("LIMIT 0,1");
return $Links->select( ['Contact_Email'], { BrandID => $_[0] } )->fetchrow || undef
}
That gets around placeholders, and any potential SQL injection issues as well then
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Are you asking if your 1st or 2nd query is faster?
BTW I would personally do:
Code:
sub { my $Links = $DB->table('Links');
$Links->select_options("LIMIT 0,1");
return $Links->select( ['Contact_Email'], { BrandID => $_[0] } )->fetchrow || undef
}
That gets around placeholders, and any potential SQL injection issues as well then
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!