Results 1 to 5 of 5

Thread: What is Timestamp in SQL?

  1. #1
    Join Date
    Nov 2009
    Posts
    56

    What is Timestamp in SQL?

    Hi friends,

    I am Bsc(IT) student and need your suggestion regarding the Timestamp concept of the SQL. I have read many books but still the the concept of the timestamp is not clear.

    Are you able to help me to understand what is timestamp in the SQL?

    Your help will be greatly appreciated..

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is Timestamp in SQL?

    Hi Friends,

    The datatype which is useful in the automatic creation of the binary numbers is called as "Timestamp". The binary number which is created by the Timestamp are must a unique number."8 bytes" is the size of the storage o the "Timestamp". A table can not include more that one column of the timestamp. When you make changes to the "Timestamp" value , the value of the keys that you have defines also get changed.

    I hope this information will help you to understand the concept of the "Timestamp" of SQL.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: What is Timestamp in SQL?

    Hi,

    1. The method of stroring data value to the column of the date table is referred as timestamp.

    2. Timestamp record in the SQL comprises data about time and date,for example rear, min, day ,month. For you information it won't be differ from standard format.

    See below example:

    Column---------Format

    Date-----------YY-MM-DD
    Time-----------HH-MM-SS
    Datetime---------YY-MM-DD HH-MM-SS

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is Timestamp in SQL?

    Hi all,

    I in SQL "GETDATE() function" which is built-in is used display the current date and time in "timestamp" form.

    For reference see below e.g:

    USE database_demo;

    select GETDATE();

    The desired out-put of the above query will be:

    2009-11-30 11-34-21.940

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What is Timestamp in SQL?

    The term "TIMESTAMP" is a datatype which create the unique number by using automatic process. The created number will be databse-wise unique.

    For more information refer below example:

    SET numCount ON

    USE pus
    GO

    CREATE TABLE dbo.abc
    (
    bar INT PRIMARY KEY,
    mod TIMESTAMP
    )
    GO


    INSERT dbo.abc(bar) VALUES(1)

    SELECT bar, mod FROM foo

    bar mod


    UPDATE dbo.abc SET bar = 1

    SELECT bar, mod FROM dbo.abc

    bar mod

    UPDATE dbo.abc SET bar = 2

Similar Threads

  1. Timestamp in Voice Mail.
    By Rufta in forum Portable Devices
    Replies: 3
    Last Post: 27-12-2010, 08:06 PM
  2. Problem in retrieving timestamp
    By Logan 2 in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 01:55 AM
  3. C# timestamp datatype
    By Mehraj in forum Software Development
    Replies: 3
    Last Post: 04-08-2009, 06:58 PM
  4. Criteria with timestamp in MySQL
    By Kirt in forum Software Development
    Replies: 3
    Last Post: 09-05-2009, 12:09 PM
  5. users' last-logon-timestamp
    By HenrikK in forum Active Directory
    Replies: 4
    Last Post: 06-03-2008, 10:04 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,226,499.11109 seconds with 16 queries