thinkphp 数据库连贯操作
请问下面的语句哪里错了?$form='username_tableasa,list_tableasb';$field='a.username,b.username';$w...
请问下面的语句哪里错了?
$form = 'username_table as a,list_table as b';
$field = 'a.username,b.username';
$where = 'a.username = b.username';
$res = $this->db->table($form)->field($field)->where($where)->count();
if(!$res){
$this->message('联系人不存在,请先注册');
} 展开
$form = 'username_table as a,list_table as b';
$field = 'a.username,b.username';
$where = 'a.username = b.username';
$res = $this->db->table($form)->field($field)->where($where)->count();
if(!$res){
$this->message('联系人不存在,请先注册');
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询