Jump to content

MYSQL Auto-Increment Help

Go to solution Solved by amp88,

I am writing a program that will insert data into a database.

 

Each row has an auto increment ID as the index, but i need to grab that as im putting the data in.

For example, I have data like this:

 

post-316-0-79426200-1439842305.png

 

When I am inserting data, i need to know the ID that row will be so i can concat "This Table is ID " and the row number.

 

How could I accomplish this?

post-316-0-79426200-1439842305.png

~Judah

Link to comment
https://linustechtips.com/topic/432143-mysql-auto-increment-help/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×