douyi1982
douyi1982
2016-12-31 17:50

SQL语句返回500错误

  • php
  • mysql

I have this SQL statement:

$sql = "SELECT CONCAT_WS (" ",Firstname, Surname) AS FullName FROM Applicant WHERE AppID=10010";

This statement returns Error 500 on my page despite of that it is a completely correct statement. I run this query on Sequel Pro and it is returning exactly what I need.

I tried a simple query and its working fine:

 $sql = "SELECT * FROM Cases";

I don't know why PHP is doing that. Maybe an extra pair of eyes can solve this.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换