Last answered:

18 Apr 2022

Posted on:

11 Apr 2022

0

Key constrain exercise codes are not working

when I type these code in my sql from sql file exercise it does not work.

CREATE TABLE companies
(
    company_id varchar(255),
    company_name varchar(255),
    headquarters_phone_number int(12),
primary key (company_id)
);

1 answers ( 0 marked as helpful)
Instructor
Posted on:

18 Apr 2022

0

Hi Maxime!

Great to have you in the course and thanks for reaching out!

I just managed to successfully execute this piece of code, too. Therefore, the error you obtain does not come from the query itself.
Can you please support your question with a screenshot/screenshots containing the code and the error message you've obtained, so that we can assist you better. Thank you.

Looking forward to your answer.
Best,
Martin

Submit an answer