Help for this page

Select Code to Download


  1. or download this
    ALTER TABLE tablename ADD COLUMN ts timestamp;
    ALTER TABLE tablename ALTER COLUMN ts SET DEFAULT CURRENT_TIMESTAMP;
    
  2. or download this
    CREATE TABLE tablename ( ..., ts timestamp DEFAULT CURRENT_TIMESTAMP, 
    +... );