Exforsys

Free Training

Help in Query

This is a discussion on Help in Query within the MySQL forums, part of the Database category; I have a table named as emp and in this I have a column named as empdate. I want to ...

Go Back   Exforsys > Database > MySQL

Exforsys.com

  #1 (permalink)  
Old 05-05-2007, 05:33 PM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
Help in Query

I have a table named as emp and in this I have a column named as empdate. I want to insert in this records such that the empdate column is fully filled with tomorrow date that is sysdate+1 along with the time also stored in it for all the rows. I could not get this. How can I do this using SQL query?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-11-2007, 03:40 PM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
SYSDATE actually gives current date and time along with hours, minutes and seconds. So you can just give

Insert into tablename values (sysdate+1);

This would solve your problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
how to use the same form for query mode and input mode bhaskara avunoori Oracle Apps 2 11-29-2009 11:59 AM
How to find second max sal of employee with the co chandraismoon Oracle Tutorials 7 05-16-2008 03:08 AM
Query with Querying Database rachelle MySQL 1 05-11-2007 03:41 PM
Performance of Query Ralph MySQL 2 05-08-2007 04:44 PM
SQL QUERY IN REPORTS 6i:Pls help nitinkoshymech Oracle Database 1 11-27-2006 09:34 AM


All times are GMT -4. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.