• Skip to primary navigation
  • Skip to content
  • Skip to footer
Tech Notes
  • About
    Ihor Vyspiansky

    Ihor Vyspiansky

    Software Engineer

    • Lviv, Ukraine
    • Email
    • LinkedIn
    • Twitter
    • Facebook
    • GitHub

    Next AUTO_INCREMENT value

    less than 1 minute read

    To get the next AUTO_INCREMENT value from a table run the following query:

    SELECT AUTO_INCREMENT
    FROM information_schema.TABLES
    WHERE TABLE_SCHEMA = "databaseName"
    AND TABLE_NAME = "tableName"
    

    Tags: AUTO_INCREMENT

    Categories: MySQL

    Updated: March 1, 2018

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    Enable TLS (SSL) database connection and certificate-based authentication

    2 minute read

    This note aims to show step by step how to generate a self-signed SAN SSL/TLS certificate on macOS Monterey and then configure a secure connection and certif...

    Too many open files error on macOS

    less than 1 minute read

    We’re going to increase an ulimit setting on macOS, but first let’s obtain the current limit of file descriptors via ulimit -n.

    How to Write to NTFS Drives in macOS Mojave

    1 minute read

    In case you use NTFS formatted USB drives on your Mac, you can only open files stored on those drives, but you can’t change those files.

    Using Apache Bench for simple load testing

    1 minute read

    The following command runs 100 requests in total with 10 concurrent requests to example.com.

    • Follow:
    • Feed
    © 2024 Ihor Vyspiansky. Powered by Jekyll & Minimal Mistakes.