Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. SQL

SQL

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
databasehelpquestionlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10694570
    wrote on last edited by
    #1

    Can anyone tell me what I am doing wrong? I am getting an error message on line 9 (Locid)... Create table Course_Section ( Csecid NUMBER(8) CONSTRAINT PK_COURSE_SECTION PRIMARY KEY, Cid NUMBER(6) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES COURSE(Cid), Termid NUMBER(5) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES TERM(Termid), Secnum NUMBER(5) NOT NULL, Fid NUMBER(4) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Fid), Day VARCHAR(10) Locid NUMBER(5) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Locid), Maxenrl NUMBER(4) NOT NULL, Currenrl NUMBER(4) NOT NULL, );

    L S 2 Replies Last reply
    0
    • U User 10694570

      Can anyone tell me what I am doing wrong? I am getting an error message on line 9 (Locid)... Create table Course_Section ( Csecid NUMBER(8) CONSTRAINT PK_COURSE_SECTION PRIMARY KEY, Cid NUMBER(6) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES COURSE(Cid), Termid NUMBER(5) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES TERM(Termid), Secnum NUMBER(5) NOT NULL, Fid NUMBER(4) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Fid), Day VARCHAR(10) Locid NUMBER(5) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Locid), Maxenrl NUMBER(4) NOT NULL, Currenrl NUMBER(4) NOT NULL, );

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What is the message?

      1 Reply Last reply
      0
      • U User 10694570

        Can anyone tell me what I am doing wrong? I am getting an error message on line 9 (Locid)... Create table Course_Section ( Csecid NUMBER(8) CONSTRAINT PK_COURSE_SECTION PRIMARY KEY, Cid NUMBER(6) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES COURSE(Cid), Termid NUMBER(5) NOT NULL CONSTRAINT FK_COURSE_SECTION REFERENCES TERM(Termid), Secnum NUMBER(5) NOT NULL, Fid NUMBER(4) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Fid), Day VARCHAR(10) Locid NUMBER(5) CONSTRAINT FK_COURSE_SECTION REFERENCES FACULTY(Locid), Maxenrl NUMBER(4) NOT NULL, Currenrl NUMBER(4) NOT NULL, );

        S Offline
        S Offline
        syed shanu
        wrote on last edited by
        #3

        You have missed the , above the Locid try this hope this will help you.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups