Answers for "how to store date in mysql"

SQL
0

how to assign date field for table in mysql

CREATE TABLE people (
    id INT AUTO_INCREMENT PRIMARY KEY,
    first_name VARCHAR(50) NOT NULL,
    last_name VARCHAR(50) NOT NULL,
    birth_date DATE NOT NULL
);
Posted by: Guest on June-18-2020
0

how to declare variable date in mysql

set @report_date = '2013-01-17 00:00:00';

SELECT  *
  FROM `NMPP`.`capacitypersecond` 
  WHERE `StreamDT` >= @report_date and `StreamDT` < '2013-01-18 00:00:00'  ;
Posted by: Guest on August-20-2021

Code answers related to "how to store date in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language