SunQuest
           Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old October 5th, 2003, 03:30 PM
DevilsEnigma DevilsEnigma is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Blacksburg,VA, USA
Posts: 30 DevilsEnigma User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to DevilsEnigma Send a message via AIM to DevilsEnigma
mySQL Date Fucntion

Hey,
I was working on a mysql databse which has all dates for a particular month. Is there a way in which I can get the date to auto_increment when I insert a record? Say today is 2003-10-05 when I insert a ew record, the date should be 2003-10-06. Is there any way I can do it in mySQL?

Reply With Quote
  #2  
Old October 5th, 2003, 03:35 PM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: mySQL Date Fucntion

No I don't think.

Reply With Quote
  #3  
Old October 5th, 2003, 05:52 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: mySQL Date Fucntion

you can use the DATE_ADD function of MySQL to accomplish this... consult the MySQL manual for more information on all the date functions available in MySQL (there are lots!!) You could also add 1 day to the date using php (I am assuming you are coding in php) before inserting the date into the DB...There are several ways to handle this check out all the PHP and MySQL date functions.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > mySQL Date Fucntion


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway