2
Scenario (example):
I have the following table:
ID | TIPO | DATAINCLUSAO
1 | 10 | 21/07/2018 09:34:51
2 | 10 | 11/07/2018 11:15:25
3 | 11 | 23/07/2018 01:52:31
4 | 11 | 04/07/2018 23:24:52
5 | 12 | 25/07/2018 03:43:33
Goal:
I’d like to make a update only on day, leaving all day 01
, for example:
ID | TIPO | DATAINCLUSAO
1 | 10 | 01/07/2018 09:34:51
2 | 10 | 01/07/2018 11:15:25
3 | 11 | 01/07/2018 01:52:31
4 | 11 | 01/07/2018 23:24:52
5 | 12 | 01/07/2018 03:43:33
- Is there such a possibility in the update itself?
- If not, what alternatives?
he doesn’t waste the time in that case?
– gmsantos
The hours really will be missing. But if you were SQL Server 2012, you would have the perfect option, as I published.
– rbz
mmm truth @gmsantos is right, I didn’t pay attention to that detail :)
– Ricardo Pontual