如何在laravel 4

时间:2016-01-20 07:57:52

标签: laravel laravel-4

我有这个SQL语句,我的问题是如何在laravel 4中编写它

Select*from tableA cross join tableB

1 个答案:

答案 0 :(得分:1)

尝试使用:

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    var returnCell: UITableViewCell?

    if tableView == tableOutletHere {
        // initialize cell here

        returnCell = cell
    }

    if tableView == tableOutletHere {
        // initialize cell here

        returnCell = cell
    }

    ...
}

func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    var returnValue: Int = 0

    if tableView == tableOutletHere {
        returnValue = array1.count
    }

    if tableView == tableOutletHere {
        returnValue = array2.count
    }

    ...

    return returnValue
}
  

警告:上述代码未经过测试。