What's wrong with query ?
INSERT INTO employee (id,name) values (2,'h') what's wrong with the query?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jan 6, 2021, 6:13 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 6, 2021, 6:50 AM EST
Vinitha TRank #8,005 · 230 reputationPosted Nov 24, 2021, 8:46 AM EST
Check with your Id column, whether it is IDENTITY column or not.
If it is Identity column, not in need to mention id value in insert query. Id column will get valued automatically.
Another way for insert query with IDENTITY column is you can mention it as DEFAULT.