Create Database Tables

Let’s create a users table with the following structure:

sqlCopy codeCREATE TABLE users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    username VARCHAR(50) NOT NULL,
    email VARCHAR(100) NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *