In a database query that defines DATE
values using ticks format and a WHERE
clause that uses regular DateTime
format, can query execution automatically convert to ticks format and return the correct results?
For example, as shown in the following sample code, when UTCTicks
receives a regular date value as input, it's automatically converted to UTC ticks before the query runs:
where StartUTCTicks > 637212960000000000 and StartUTCTicks < 637345151990000000
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…