Quote:
Originally Posted by Shinja
PHP код:
new date[11], time[11], year, month, day, hour, minute, second;
sscanf("2016-09-15 08:36:21", "s[11]s[11]",date, time);
sscanf(date, "p<->ddd", year, month, day);
sscanf(time, "p<:>ddd", hour, minute, second);
|
I know do that, I wanted to know if it could be done only with MySQL code.
Something like:
'where date < olddate'
?
It is to select many registers at once.