Advertisement
elena1234

automatically updated column in MySQL

Feb 6th, 2023
1,259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.15 KB | Source Code | 0 0
  1. CREATE TABLE tweet
  2.  (
  3.   content TEXT,
  4.   username VARCHAR(50),
  5.   time_created DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  6.   );
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement