SELECT * FROM qs_topic
t
WHERE qs_topic
.topic_id
=6 LIMIT 1
CDbCommand 无法执行 SQL 语句: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘qs_topic.topic_id’ in ‘where clause’
刚一更新了svn版本,生成了上面的sql,然后抛错~
从“外观”上看,是给了表别名,但是在使用时,却没有使用别名,所造成的~~
- 我使用的是 findByPk() 方法来查询~
qiang,看看