I have a weird one here! I have a database table that has publication times and every minute a code is run that looks to see if something is to be published. I know for a fact there are 3 different records that have 09:00:00 AM as the time.
When I run the following code I only get one record:
SELECT * FROM AutoContentTimes WHERE FireTime = '09:00:00 AM'
What could be wrong, it is very simple. FireTime is char(11)
Many thanks in advance,
neojakey
You could have
set rowcount 1set.Try
set rowcount 0And, as commented, don’t store times as
char. Use the appropriate data type.