Exforsys

Online 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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2007, 06: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
  #2 (permalink)  
Old 05-11-2007, 04: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

Thread Tools

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 find second max sal of employee with the co chandraismoon Oracle Tutorials 7 05-16-2008 04:08 AM
Query with Querying Database rachelle MySQL 1 05-11-2007 04:41 PM
Performance of Query Ralph MySQL 2 05-08-2007 05:44 PM
SQL QUERY IN REPORTS 6i:Pls help nitinkoshymech Oracle Database 1 11-27-2006 10:34 AM
how to use the same form for query mode and input mode bhaskara avunoori Oracle Apps 1 06-23-2006 07:07 AM


All times are GMT -4. The time now is 09:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.