Hi guys! I can not understand - what is wrong with this simple line -

create table SUBJECT ( SUBJ_ID NUMERUC not null, SUBJ_NAME VARCHAR(100));

error message -

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create table SUBJECT ( SUBJ_ID NUMERUC not null, SUBJ_NAME VARCHAR(100))' at line 1

Please help) Thanks in advance)

Recommended Answers

All 2 Replies

It should be

create table SUBJECT ( SUBJ_ID NUMERIC not null, SUBJ_NAME VARCHAR(100))

You misspelled NUMERIC

commented: ++++ +1

really. Thank you)) typo in my tutorial)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.