CREATE TABLE classname (
class_name VARCHAR2(5) CONSTRAINT class_name_pk PRIMARY KEY,
meet_at_and_timing VARCHAR2(30),
room_no VARCHAR2(5),
faculty_handling NUMBER(5) CONSTRAINT faculty_handling_fk REFERENCES faculty(faculty_id)
);
在上表创建中,room_number 应始终包含“LH”作为前两个字符。
例子:
room_no=LH43 is valid but room_no=EC43 is invalid...
我应该如何指定这个?