title: How to fix this it is showing Syntax error, ERROR 1064 (42000):
body: <p>I'm trying to create a table with 2 foreign keys but unable to find the syntax error. Where do i need to make the changes?</p>
  
  <pre><code>create table Leave(
  leaveId int primary key, noOfDays int, approverId varchar(50), requestorId varchar(50), 
  Foreign key (approverId) References Approver (approverId), 
  Foreign key(requestorId) References Requestor(requestorId)
  );
  </code></pre>
  
  <p>These are the 2 tables create before creating leave table:</p>
  
  <ol>
  <li><p><code>create table Approver(approverId int primary key, approverName varchar(50));</code></p></li>
  <li><p><code>create table Requestor(requestorId int primary key, requestorName varchar(50), noOfLeavesApproved int, approverId int, dateOfApplication date, Foreign key(approverId) References Approver(approverId));</code></p></li>
  </ol>
  
  <p>where can I make the changes for this syntax error?</p>
  
  <p>It is showing the below error for the leave table</p>
  
  <p>ERROR:</p>
  
  <blockquote>
    <p>ERROR 1064 (42000): 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 'Leave(leaveId int primary key, noOfDays int,
    approverId varchar(50), requestorId' at line 1</p>
  </blockquote>