0

以下はクエリです

SELECT
users.userName,
rechannel.channelName,
trschedule.ContentType,
trprogram.programName,
trschedule.Description,
trschedule.startTime,
trschedule.endTime,
TIMEDIFF(trschedule.startTime,trschedule.endTime) AS Difference,
LENGTH(trschedule.Description) AS Charcter_Count,
ROUND( LENGTH(trschedule.Description)/6) AS Word_Count,
ROUND( LENGTH(trschedule.Description)/65) AS Line_Count,
trschedule.ProvinceName,
trschedule.CityName,
trschedule.AreaName,
trschedule.ContentTone,
trschedule.searchText,
trschedule.CountryName,
trschedule.transmissionDate,
trschedule.insDate
FROM users 
Inner Join trschedule ON users.userID = trschedule.insertID 
Inner Join rechannel ON rechannel.channelID = trschedule.channelID 
Inner Join trprogram ON trprogram.programID = trschedule.programID
WHERE (trschedule.insDate BETWEEN '2012-10-01' AND '2012-10-12')

しかし、結果は (insertDate)2012-10-01 から 2012-10-11 まで表示され、2012-10-12 のデータは表示されません。

理由は何ですか?/

4

3 に答える 3

1

またはこれを試してください:

WHERE (trschedule.insDate BETWEEN '2012-10-01 00:00:00' AND '2012-10-12 23:59:59')
于 2012-10-12T12:58:22.683 に答える