I have been trying to add a foreign key to my table studentJobInformation. I have two tables
applicationForm which is having a column versityId. I want to make this as my foreign key to this studentJobInformation table. But unfortunately, I could not do that. First image shows the information of the column of applicationForm table and second image shows the studentJobInformation enter image description here then I write this SQL to add Foreign key.
ALTER TABLE studentJobInformation ADD FOREIGN KEY (versityId) REFERENCES applicationForm((versityId)
But my H2 database shows this error.
Syntax error in SQL statement "ALTER TABLE STUDENTJOBINFORMATION ADD FOREIGN KEY (VERSITYID) REFERENCES APPLICATIONFORM(([]VERSITYID) "; expected "identifier"; SQL statement: ALTER TABLE studentJobInformation ADD FOREIGN KEY (versityId) REFERENCES applicationForm((versityId) [42001-196] 42001/42001*
