Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
double insert (MySQL)
collate reservations
new_road
Test for MySQL "serializable" transaction, part 1
Newspaper Site
ITM_14210069
emp
Srinivas
GROUP_CONCAT Mysql
update if the id based on difference in time
Please log in to post a comment.