求助!关于DataGrid绑定数据出错。
我的编写的项目运行到下面这行“this.dgSalary.DataSource = this.manager.GetMulteSal("","","","");”
出现
“异常详细信息: System.Data.ConstraintException: 未能启用约束。一行或多行中包含违反非空、唯一或外键约束的值。”
“GetMulteSal()”方法执行的SQL语句如下:
“ string strSql = "SELECT sal.*, emp.empname AS empname,"+
"dept.deptno AS deptno, dept.deptname as deptname "+
"FROM sal INNER JOIN "+
"emp ON sal.empno = emp.empno INNER JOIN "+
"dept ON emp.deptno = dept.deptno WHERE 1=1 "+
condition;”
请问这个异常是不是说明数据库中表有问题?应该如何修改?