<?php
$querystring = db_select('table1')
->fields('table1')
->execute()
->getQueryString();
echo $querystring;
Or
$querystring = db_select('table1')
->fields('table1');
echo $querystring;
$querystring = db_select('table1')
->fields('table1')
->execute()
->getQueryString();
echo $querystring;
Or
$querystring = db_select('table1')
->fields('table1');
echo $querystring;
?>
No comments:
Post a Comment