I have tried using the \d command inside perl and this is what i get
DBD::Pg::st execute failed: ERROR: syntax error at or near "d"
This is My Code
#!/usr/bin/perl
use DBI;
$myConnection = DBI->connect("DBI:Pg:dbname=test;host=localhost","postgres", "pass123");
$query = $myConnection->prepare("\d");
$result = $query->execute();
while(my @row = $sth->fetchrow_array()) {
print "ID = ". $row[0] . "\n";
}
$myConnection->disconnect();
"\\d") or use a single-quoted string ('\d').\dis a command of thepsqlutility and not available as a SQL query via DBI.