BsCapters::model()->findAllBySql("select count(*) as bookids from
bs_capters where bookid = ".$bookid." and urlid = ".$urlid)
count(*) as xxx
这个xxx必须是表里面存在的字段否则无法取到值
时间: 2024-10-11 05:54:02
BsCapters::model()->findAllBySql("select count(*) as bookids from
bs_capters where bookid = ".$bookid." and urlid = ".$urlid)
count(*) as xxx
这个xxx必须是表里面存在的字段否则无法取到值