Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144

    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?


  2. #2
    caradoc is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    122
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...