Answers for "how to query a column with date in sql"

SQL
1

how to search date in sql query

select * from test 
 where date between '03/19/2014' and '03/19/2014 23:59:59'
Posted by: Guest on May-08-2020
1

create table with date column in sql

mysql> create table DemoTable
   (
   StudentId int NOT NULL AUTO_INCREMENT PRIMARY KEY,
   StudentName varchar(20),
   StudentAdmissionDate DATE
   );
Query OK, 0 rows affected (0.47 sec)
Posted by: Guest on December-04-2020
0

how to search date in sql query

select * from test 
 where datediff(day, date, '03/19/2014') = 0
Posted by: Guest on May-08-2020

Code answers related to "how to query a column with date in sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language