我正在用C#在winforms中工作。我的继承人代码需要SQL查询调试
query = "SELECT max(Appointment_Time) FROM Appointments WHERE (Appointment_Status = 'D')";
dset = db.GetRecords(query,"Appointments");
ctime_Label.Text = dset.Tables["Appointments"].Rows[0]["Appointment_Time"].ToString();
db.GETRecords是为我提供SQL服务类的功能,只需返回我的数据集。我不断收到错误“列‘Appointment_Time’不列入属于表约会”,这是愚蠢的Cuz
- 当我插入值的 工作的罚款。 当我不使用 MAX(Appointment_Time)
- 职能是 工作正常
WHA是这里的问题..我觉得有什么做的MAX()函数。对此的任何建议或替代
日Thnx你们了男孩。我选择了在FCFS先来的拳头先得 – Moon 2010-02-11 15:48:51