php中不能执行sql语句。 10
2个回答
展开全部
我是这样写的,无论我用empty还是OCIColumnIsNULL来判断,都没有执行进去
$sql = "SELECT TAX_FPDJ.DJRQ FROM TAX_FPDJ,TAX_FPDJTI WHERE TAX_FPDJTI.FPDM = '".$FapiaoDM."' AND TAX_FPDJTI.QSH <= '".$FapiaoHM."' AND TAX_FPDJTI.QSH+TAX_FPDJTI.SL*TAX_FPDJTI.ZZH >= '".$FapiaoHM."' AND TAX_FPDJ.DJXH = TAX_FPDJTI.DJXH AND TAX_FPDJ.TAXPAYERID = ".$asTaxpayerid." AND TAX_FPDJ.DJLX = '8'";
$stmt = OCIParse($conn,$sql);
$rs = OCIExecute($stmt);
while (OCIFetch($stmt)){
$asEndTime = OCIResult($stmt,1);
if (empty($asEndTime))
{$asDatetime = $asStartTime;
$tip = "没有缴销";}
else
$asDatetime = $asStartTime."至".$asEndTime;
}
OCIFreeStatement($stmt);
追问
这是什么。。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询