Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
mysql datetime to date selected using in list
#MySQL 5.7.12 #please drop objects you've created at the end of the script #or check for their existance before creating #'\\' is a delimiter CREATE TABLE mytablex( agg NUMERIC(12,2) ,dt DATETIME NOT NULL ); INSERT INTO mytablex(agg,dt) VALUES (68833599.13,'2016-11-14 12:34:56') ,(69350727.47,'2016-11-15 00:00:00') ,(69351461.28,'2016-11-16 00:00:00'); \\ ALTER TABLE `mytablex` CHANGE `dt` `dt` DATE; \\ select * from mytablex where dt in ('2016-11-14') \\ DROP TABLE mytablex; \\
run
|
edit
|
history
|
help
0
prithwi
poi
join tables multiple columns
MySQL Practice
ITM_14210069
find tax rates for current time period
test
poi
loan
calculate averages for students and levels