Resolved Returns ID 0 when inserted

jillyclaire

New member
Joined
Aug 29, 2020
Messages
1
Programming Experience
Beginner
Hi i would like to ask what's the possible problem of why the item i inserted in c# is always 0? is there also a possible way to not make it 0 and make it as auto_incremented? , i already assigned the auto_increment syntax on mysql.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,140
Location
Sydney, Australia
Programming Experience
10+
If it doesn't work then you did it wrong. As you haven't shown us what you did, it would require magic for us to tell you what's wrong with it. You need to provide a FULL and CLEAR explanation of the problem, which includes what you're trying to achieve, how you're trying to achieve it and what happens when you try. That would also include the specific design of the database table in question.
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
1,788
Location
Chesapeake, VA
Programming Experience
10+
Yes, we'd like to know if you used one the techniques listed below or if you had a different approach.

 
Top Bottom