2

私は文字列を持っています。"2008-01-01 11:09:11".

これを日時に変換するにはどうすればよいですか?

4

2 に答える 2

1

If you're using it as a literal string in, say, a SELECT statement or a stored procedure call, the conversion is automatic.

If you've got it in a variable, convert(datetime, @stringDateTime) should work.

于 2009-12-07T18:23:21.857 に答える
-1

タイムスタンプ データ型は次のように定義されてvarbinary(8) nullおり、時間または日付と何らかの関係があります。

sybase ではタイムスタンプを日時に変換できません。

于 2012-05-28T08:36:15.450 に答える