473,403 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

systime

I just wanted to know tht is thr any way out tht while creating a table i can put a column with the datatype time and tht too the time be automatically inserted as the current systime
Aug 1 '07 #1
3 3658
debasisdas
8,127 Expert 4TB
As you have posted a question in the article section it is being moved to Oracle Forum.

MODERATOR.
Aug 2 '07 #2
debasisdas
8,127 Expert 4TB
Oracle does not support TIME data type . You can do that with DATE data type.

By using DATE you can store both date and time informations.
Aug 2 '07 #3
gintsp
36
I just wanted to know tht is thr any way out tht while creating a table i can put a column with the datatype time and tht too the time be automatically inserted as the current systime
Expand|Select|Wrap|Line Numbers
  1. SQL> create table zz (a date default sysdate);
  2.  
  3. Table created.
  4.  
  5. Elapsed: 00:00:00.06
  6. SQL> insert into zz values (default);
  7.  
  8. 1 row created.
  9.  
  10. Elapsed: 00:00:00.01
  11. SQL> select to_char(a, 'YYYY-MM-DD HH24:MI:SS') from zz;
  12.  
  13. TO_CHAR(A,'YYYY-MM-
  14. -------------------
  15. 2007-08-02 10:23:10
  16.  
  17. Elapsed: 00:00:00.04
  18. SQL> 
Gints Plivna
Aug 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Knopper | last post by:
Hello, I have follow C++ code segment. How can i convert it to C# ? typedef struct _SYSTEMTIME { WORD wYear; WORD wMonth; WORD wDayOfWeek;
2
by: Raskolnikow | last post by:
Hi! I have a very simple problem with itoa() or the localtime(...). Sorry, if it is too simple, I don't have a proper example. Please have a look at the comments. struct tm *systime; time_t...
4
by: Mike Kearl | last post by:
I want to set the local Date Time of the xp systems in my organization using C# and a winform application. From what I have read this is not an easy task anymore. You have to obtain privlege...
2
by: Sunit Joshi | last post by:
Hell All I'm trying to get the file time adjusted to localtime using the DateTime.FromFileTime(long fileTime) method. But I'm seeing that the time is lesser by 1hr when I get the same using...
6
by: | last post by:
Hi all, how can I update client pc date/time after I got server datetime when start the application program ? Thanks Edmond
11
by: jwf | last post by:
I am writing a NON MFC C++ application (Plug-in for a 3rd party DB system). The application is designed to synchronise data between MS Outlook and the DB system. I am using smart pointers for the...
1
by: jwf | last post by:
This question continues on from a previous post "DATE to string" but I think it deserves a new thread. In my previous post I was trying to convert a DATE to string in a NON MFC C++ application...
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
4
by: Benny Van | last post by:
Hi all! I have a question regarding a windows operating system function: I was asked to write a small program for a homework to display the user name and computer name and the system time out to a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.