How to perform an SQL insert in Java

后端 未结 1 1630
挽巷
挽巷 2021-01-29 09:17

I am trying to insert data in to a table with an auto increment primary key. My table structure is like this:

int:PK 
varchar:Item_ID 
varchar:Item_name 
int:FK_         


        
相关标签:
1条回答
  • 2021-01-29 10:13

    Your table has four columns and your inserts are only inserting three values. Try removing a column from the table, or alternatively inserting four values when inserting a row.

    0 讨论(0)
提交回复
热议问题