2009-10-09 32 views
1

我是sybase的新手,而且google没有任何帮助。我想要做的就是将“现在”的有效时间插入到时间戳字段中。现在的mysql相当于()。我尝试了getdate()并得到了有趣的结果。将now()插入到Sybase时间戳字段

谢谢。

回答

3

您无法将数据插入到时间戳列中。

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sqlug/html/sqlug/sqlug247.htm

新增

我应该包括这马上是好的,但一个时间戳字段更新为自动时修改行的当前日期/时间。

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.blocks/html/blocks/blocks35.htm

+1

它被更新的东西,但不是当前日期时间,我不认为这是得到那个的一种方式。 – Mark 2009-10-09 16:18:01