$SQL = "SELECT '' as name,'' as id FROM `student`"
如果这样的错误正在显示
$select->columns(array(''=>'name'));
还有其他方法吗?
答案 0 :(得分:0)
列名和别名的顺序需要反转:
var PageView = Backbone.View.extend({});
var Page = Backbone.Model.extend({});
window.Shop = {
pages: {
home: {
view: new PageView({}),
model: new Page({})
},
products: {
view: new PageView({}),
model: new Page({})
}
}
}
列名''需要按字面意思使用,因为它不是列名,你可以使用Zend \ Db \ Sql \ Expression:
SELECT '' as name
$select->columns(array('name' => ''));