Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Accessing the Data via SQL in WF perl script.
jsha
Hi,
I am trying to access data using following code, for some reason it hangs up. Any insight will be very helpful.
my $qry = "SELECT FILENAME from CMS_TEAMSITE where FILENAME= ?";
my $dbh = TWC::Utils::dbConnect(TWC::Utils::getDBConnectionInfo());
my $sth = $dbh->prepare($qry);
my $rv = $sth->execute($$dcrPath);
my $row = $sth->fetchrow_hashref)
$filen = $row->{'FILENAME'};
thanks
Find more posts tagged with
Comments
reddyl
You need to pass the filename before you execute the sql statement.