Issue
I apologize if this is a dumb question but I'm getting an error message in this line and I don't now why. Can someone help?
CREATE TABLE cliente
(
cpf INTEGER,
nome varchar(60),
dtnasc date),
constraint pk_cliente primary key (cpf INTEGER)
);
I'm getting this error:
Msg 102, Level 15, State 1, Line 3
Incorrect syntax near ','
Solution
create table cliente (cpf INTEGER not null, nome varchar(60), dtnasc date);
alter table cliente add constraint pk_cliente primary key(cpf)
Answered By - Sergey Answer Checked By - David Goodson (sql.easybugfix Volunteer)
Post a Comment
Post a Comment