حقل id ي mysql auto increment

If the application is using manual commits, the lock will be maintained for a longer period. For me it works, and looks simple: $auto_inc_db = mysql_query(SELECT * FROM my_table_name ORDER BY id ASC ); while($auto_inc_result = mysql_fetch_array($auto_inc_db)) { $last_id = $auto_inc_result[id]; } $next_id = ($last_id+1); echo $next_id;//this is the new id, if auto increment is on

2022-11-27
    الدي خلقا المت و الحيت ليبلواكم
  1. Using a id like above will help me identify the object identity
  2. localhost/phpmyadmin
  3. MySQL AUTO_INCREMENT Details
  4. Aug 23, 2021 · Notice the AUTO_INCREMENT on the category_id field
  5. 3
  6. Caution
  7. The starting value for AUTO_INCREMENT is 1, which is the default