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数据库里,应该怎么写呢?
相关问答:
比如在delphi代码里,对某个方法或者form不了解,按下ctrl键,用鼠标点一下,就会跳到这个form或方法的代码哪里去。
我刚学c#,先下了一个系统的源代码看,里面很多控件、方法不知道是哪里来的,也没法去找。 ......
这是C#写的dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Dlltest
{
public class DllClass
& ......
.cs文件里代码:
string ss="12345";
protected void Page_Load(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "", " <scrip ......
C#写JAVASCRIPT 数组
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
存储过是这样定义的
create or replace procedure PROC_ReportStoreBanBao1(stime in varchar2,
&n ......