Urgent SQL Oracle help
Go to solution
Solved by programmer,
On 5/7/2018 at 8:56 PM, owencrispy said:currently going out of my mind as I have an exam on SQL tomorrow and i can't for the life of me figure out this error:
INSERT INTO treatment VALUES ('1',DATE'2018-12-12','injection', REFERENCES animal(animalno)'001')
ORA-00917: missing comma
can someone please point out where i'm going wrong there and if that is right, where am i missing the comma? (trying to insert data into a table with a foreign key)
Probably too late - but I'm guessing the issue is that you don't have a column for REFERENCES animal(animalno) to apply to.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now