title: When i inserted data, it always says that foreign key mismatch.I can't find the reason for it?
body: <pre><code>CREATE TABLE Student 
  (
      Registration_No INTEGER  NOT NULL ,
      NIC  varchar(25),
      Student_Name varchar(255),
      Address varchar(255),
      Home_Telephone_No varchar(25),
      Mobile_Telephone_No varchar(25),
      Email varchar(255),
      Education varchar(255),
  
      PRIMARY KEY (Registration_No, NIC)
  );
  
  CREATE TABLE Payment 
  (
      Registration_No INTEGER NOT NULL,
      Registration_fee decimal(15,2),
      Annual_subscription decimal(15,2),
  
      FOREIGN KEY(Registration_No) 
          REFERENCES Student(Registration_No)
  );
  </code></pre>
  <p>Error:</p>
  <blockquote>
  <p>Foreign key mismatch - &quot;Payment&quot; referencing &quot;Student&quot; <a href="https://i.stack.imgur.com/yC25t.png" rel="nofollow noreferrer">1</a>:]<a href="https://i.stack.imgur.com/yC25t.png" rel="nofollow noreferrer">1</a>INSERT INTO Payment(Registration_No,Registration_fee,Annual_subscription )VALUES(10,100.50,500);</p>
  <p>Foreign key mismatch - &quot;Payment&quot; referencing &quot;Student&quot;</p>
  </blockquote>