Answers for "mysql timestamp add"

SQL
1

add current timestamp in mysql

INSERT INTO servers (server_name, online_status, exchange, disk_space,
network_shares,date_time) VALUES('m1','ONLINE','ONLINE','100GB','ONLINE',now() )

#Replace date_time with the column name you want to use to insert the time.
Posted by: Guest on April-07-2021
0

calculate date and convert to yearsmysql

select date1, date2,timestampdiff(YEAR,date2,date1) from so7749639
Posted by: Guest on March-12-2020

Code answers related to "mysql timestamp add"

Code answers related to "SQL"

Browse Popular Code Answers by Language