fsdfsewtf
fsdfsewtf
2017-04-02 13:23

新手求帮忙,请大神帮忙解释一下sql语句的问题

5
  • sql

请大神帮忙看看,这几句SQL语句有什么语法问题!!!
string sql = "select EmployeeId,EmployeeName,Gender,Birthday,DepartmentName from Employees";
sql += "inner join EmployeeDepartment on Employees.DepartmentId=EmployeeDepartment.DepartmentId";
sql += "where Employees.DepartmentId="+departmentId;
执行后的语句是这样:图片说明

where那好像没有隔开,求大神教具体应该怎么改

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

6条回答