How to create mysql table with auto increment?

I want to create a MySQL table with an auto-increment from the user application when the user is login.
but i don’t know how to set the auto increment from the user app.

When you create your table, set your field to AI, auto increment.
When a record is inserted in the table, this auto-increment field will have the value of the previous record + 1.

2 Likes

i cant create because it each user will have there own table with there own id, table will be create after user login

Use cCreate Table command :

i dont have idea about that

CREATE TABLE Users(
Id int NOT NULL AUTO_INCREMENT,
Name varchar(255) NOT NULL,

);

where should i use it… i dont have an extention

In initialize your screen, call this command in your Kodular blocks.

which block ??
Screenshot_12
is this extension usefull

Where you call SQL conmands.

i use deep host mysql extension but there is no auto increment block or option

Deephost not provide support so use method providing by Puravida

1 Like

Do have any extension?

You are confused . Talks about MySQL, shows SQLite extension … To create auto-increment field, you need to execute SQL command. So you need a block that executes the SQL command. This extension is not commented on here in the community.

1 Like

Use this method for run Mysql Queries

3 Likes

i download this extension just now

Or This

2 Likes

You are discussing about Mysql Or SQLite :man_shrugging:

Suggestion: Do a database study

1 Like

SQ lite is extension for Mysql data base rit