Sql time scheduling problem: the reverse order of year, month and day, the positive order of time, minutes and seconds, and how to realize sql and EF.

clipboard.png

could you tell me how to query the sql statement and how to implement it on ef? thank you

Jun.01,2021

CONVERT (varchar (100), GETDATE (), 23)
CONVERT (varchar (100), GETDATE (), 24) the acquisition time
is divided into two columns, and then sorted in descending and ascending order of date

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3bb52-2c2bd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3bb52-2c2bd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?