Home > other >  The name "Y" is not permitted in this context. Valid expressions are constants constant ex
The name "Y" is not permitted in this context. Valid expressions are constants constant ex

Time:01-17

CREATE TABLE staff 
(
    address_id integer NOT NULL,
    mobile varchar(15) NOT NULL,
    job_title_id integer NOT NULL,
    is_active char(1) NOT NULL DEFAULT Y,
    CONSTRAINT staff_pk PRIMARY KEY (id)  
)

CodePudding user response:

The Y needs to be enclosed in quote marks

  •  Tags:  
  • Related