易截截图软件、单文件、免安装、纯绿色、仅160KB

C#将timestamp格式时间存入oracle

请问大家如何在oracle中timestamp字段中存入时间,精确到毫秒呀?

我以前用的是

string create = DateTime.Now.ToLocalTime().ToString();
to_date('" + create + "','yyyy-mm-dd hh24:mi:ss')

可最后数据库中毫秒全是000,请问大家怎么才能存入精确时间呀?
to_date('" + create + "','yyyy-mm-dd hh24:mi:ss')
<== 你自己把毫秒拿掉了.. ..

select to_char(current_timestamp(5),’DD-MON-YYYY HH24:MI:SSxFF’) from xxtable;


我现在是想先生成系统现在的时间,然后把时间存到oracle数据库里,应该怎么写呢?


相关问答:

基础问题:c#有没有像DELPHI一样的代码跟踪提示功能

比如在delphi代码里,对某个方法或者form不了解,按下ctrl键,用鼠标点一下,就会跳到这个form或方法的代码哪里去。

我刚学c#,先下了一个系统的源代码看,里面很多控件、方法不知道是哪里来的,也没法去找。 ......

求高手解答:delphi中如何调用C#写的dll中的类

这是C#写的dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dlltest
{
    public class DllClass
  & ......

在JavaScript里访问C#变量

.cs文件里代码:
string ss="12345";
protected void Page_Load(object sender, EventArgs e)
{
  ClientScript.RegisterStartupScript(this.GetType(), "", " <scrip ......

C#写JAVASCRIPT 数组

C#写JAVASCRIPT 数组

      protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
& ......

Oracle参数类型和C#类型问题【在线等!!】

存储过是这样定义的

create or replace procedure PROC_ReportStoreBanBao1(stime    in varchar2,
                        &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号