![]() |
#2
skyland842007-06-02 17:21
|
dr=com.ExecuteReader();
while(dr.Read())
{
int Count=Convert.toInt32(dr["count"]);
if(Count==0)
{string str1="delete * from dep where "}
}
我想实现的功能:
当部门aa中有员工时,不允许删除;若没有员工,则允许删除