1

如何限制为 SQL 中的字段输入的值

Appointment ( Appointment_ID, Appointment_Date, Appointment_Time )

我必须限制输入的值应该是

Appointment_Date (Monday – Friday) 
Appointment_Time (08:00- 17:00)
4

1 回答 1

0

您可以为此使用检查约束。从日期中提取日期并使用 between 子句检查时间。

你用的是什么数据库?

于 2012-09-24T20:29:21.173 回答