dongyun65343
2016-01-01 05:33
浏览 37
已采纳

如何在cakephp 3.x中执行自定义查询

Custom query execution in cakephp. I have applied below code.

$conn = ConnectionManager::get('default');

$rs = $conn->query('SELECT * FROM customers');

It gives me blank array though customers table has 20 records.

Please suggest me some solution.

Thanks.

1条回答 默认 最新

相关推荐 更多相似问题