Get and update only Time part from 'DateTime' data type field
From: Kumar (Kumar_at_discussions.microsoft.com)
Date: 09/13/04
- Next message: Patrik: "sp_OACreate - Invalid Class String"
- Previous message: David Portas: "RE: Ordinal Position"
- Next in thread: Adam Machanic: "Re: Get and update only Time part from 'DateTime' data type field"
- Reply: Adam Machanic: "Re: Get and update only Time part from 'DateTime' data type field"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Sep 2004 06:45:01 -0700
Can you give me a SQL syntax or query to select only 'Time' portion from a
table column which is defined as 'datetime'. ( 8 char length)
Also, I need to update this field (same table) with only time part.
e.g: '2004-04-15 17:45:30.0000' (Existing value in the table column)
'05:45:30 PM' (Required value in the same table coumn
after update)
Cheers..
- Next message: Patrik: "sp_OACreate - Invalid Class String"
- Previous message: David Portas: "RE: Ordinal Position"
- Next in thread: Adam Machanic: "Re: Get and update only Time part from 'DateTime' data type field"
- Reply: Adam Machanic: "Re: Get and update only Time part from 'DateTime' data type field"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|