SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: date column?

  1. #1
    SitePoint Wizard Darren884's Avatar
    Join Date
    Aug 2003
    Location
    Southern California, United States
    Posts
    1,616
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    date column?

    Ok I have never really used the mysql date, so I set my date_clicked field to mysql date type. Now what would I put in when I insert the data?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,216
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    use CURRENT_DATE

    you might also consider using datatype DATETIME for the column instead, and using the value CURRENT_TIMESTAMP when inserting
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


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
  •