Horje Website
SQL Auto Initialization Of Date And Time – MYsql Code

SQL Auto Initialization Of Date And Time

SQL Auto Initialization Of Date And Time - SQL Code


 
  1. -- This syntax is Web SQL specific
  2. CREATE TABLE users (
  3. id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  4. name VARCHAR(50) NOT NULL UNIQUE,
  5. birth_date DATE NOT NULL,
  6. created_at DATETIME DEFAULT CURRENT_TIMESTAMP
  7. );



Try Your Self ->



Published:
September 28, 2020
Author:
admin
Category:
SQL Advanced, SQL Source Code
Views:
20

This article was posted in SQL Advanced, SQL Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

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

 

Horje © 2011 - 2022