set and retrieve auto increment value from mysql to java (set in jlabel) -
Table A has two fields: ID, name.
I value id, java mysql. Open Form 1 and click New jbutton display jlabel1 value = id (autoincrement value) from mysql.and user (name) input value jtextfield.and asusual stored.
Here's my problem: How can I get automatic increase value from mysql to java (id set in jlabel).
You can fire the query to get the next. The value of the maximum id, for example: - < / P>
Select Max (ID) +1 from table_name;
Comments
Post a Comment