2017-07-19 14:17:53 1815次浏览 2条回答 0 悬赏 10 金钱
[['username'], 'unique', 'targetClass' => '\common\models\User' ,'message' => '用户已经存在.', 'on' => ['create']],

SELECT EXISTS(SELECT * FROM `auth_user` WHERE (`0`.`username`='q'))' 
补充于 2017-07-19 14:18

自动gen的sql,table怎么多出个0的别名?

您需要登录后才可以回答。登录 | 立即注册
teencard
试用期

teencard

注册时间:2014-11-25
最后登录:2017-09-09
在线时长:1小时12分
  • 粉丝0
  • 金钱15
  • 威望0
  • 积分25

热门问题