这篇文章主要介绍了ThinkPHP2.0读取MSSQL提示Incorrect syntax near the keyword 'AS'的解决方法,需要的朋友可以参考下。
问题代码如下:
<?php
class IndexAction extends Action{
public function index(){
/*
$Model = new Model();
$test = $Model->query('select top 10 * from f_city');
dump($test);
*/
$CityModel = M('city');
$CityModel->find();...