In my patient
table, I want all the patient IDs to start with the 'PT'
prefix. For example, PT01
, PT02
, ...
My code is:
CREATE TABLE patient
(
p_id varchar(10) PRIMARY KEY CHECK(p_id in('PT%')),
pname varchar(22)
)
It does not work... any suggestions?