是否可以檢查列中的某些數據? 爲爲例,我有一個名爲列和'added'
值是一樣的東西'2011-04-18 10:44:42'
檢查列中的某些數據
,並有可能從塔只有日期'2011-04-18'
$date = sqlesc(get_date_time());
$res = mysql_query("SELECT id, username FROM users WHERE added =
$date ORDER BY username") or print(mysql_error());
什麼是「added」列的數據類型? – diEcho 2011-04-18 11:16:07
閱讀:http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html – diEcho 2011-04-18 11:18:45