Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Ingres > [Info-Ingres] a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5784 of 5994
Post > Topic >>

[Info-Ingres] ansidate('now')

by "Martin Bowes" <martin.bowes@[EMAIL PROTECTED] > Apr 9, 2008 at 11:47 AM

This is a multi-part message in MIME format.

------_=_NextPart_001_01C89A2F.239CB017
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi Everyone,

=20

What is the ansidate equivalent of 'now'?

=20

I'm trying to store data in a table and I need the time of storage to be
as unique as possible. The nanosecond capacity of ansidate seemed to be
the way to go. But I cant create an andsidate column with default 'now'.

=20

Furthermore, the only thing I have found is: select
timestamp_local(date('now'))\g

Trouble is, the ingresdate 'now' has no sub second capacity, and so the
returned time always has seconds.000000000.

=20

The table in question has been in existence for a long time and the
applications around it have already been built so I need something that
can be retro-fitted transparently if possible.

=20

Martin Bowes


------_=_NextPart_001_01C89A2F.239CB017
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
=
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @[EMAIL PROTECTED]
 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
..MsoChpDefault
	{mso-style-type:ex****t-only;}
@[EMAIL PROTECTED]
 Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=3DEN-GB link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal>Hi Everyone,<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>What is the ansidate equivalent of =
'now'?<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>I'm trying to store data in a table and I need the =
time of
storage to be as unique as possible. The nanosecond capacity of ansidate =
seemed
to be the way to go. But I cant create an andsidate column with default =
'now'.<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Furthermore, the only thing I have found is: select
timestamp_local(date('now'))\g<o:p></o:p></p>

<p class=3DMsoNormal>Trouble is, the ingresdate 'now' has no sub second =
capacity,
and so the returned time always has seconds.000000000.<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>The table in question has been in existence for a =
long time
and the applications around it have already been built so I need =
something that
can be retro-fitted transparently if possible.<o:p></o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<p class=3DMsoNormal>Martin Bowes<o:p></o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01C89A2F.239CB017--
 




 1 Posts in Topic:
[Info-Ingres] ansidate('now')
"Martin Bowes"   2008-04-09 11:47:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 0:34:36 CDT 2008.