You can use NOW()
:
INSERT INTO servers (server_name, online_status, exchange, disk_space, network_shares, c_time)
VALUES('m1', 'ONLINE', 'exchange', 'disk_space', 'network_shares', NOW())
More Related Contents:
- MySQL Query GROUP BY day / month / year
- Error in MySQL when setting default value for DATE or DATETIME
- Difference between two dates in MySQL
- MySQL Query to select data from last week?
- Datetime equal or greater than today in MySQL
- How to convert number of week into date?
- Set NOW() as Default Value for datetime datatype?
- Group mysql query by 15 min intervals
- SQL Query to show nearest date?
- how to cast the hexadecimal to varchar(datetime)?
- Get total hours worked in a day mysql
- MySQL: Insert datetime into other datetime field
- If two columns are 1 then make new column
- How can I return pivot table output in MySQL?
- Retrieving the last record in each group – MySQL
- Cast from VARCHAR to INT – MySQL
- Required to join 2 tables with their FKs in a 3rd table
- Does COUNT(*) always return a result?
- Connect By Prior Equivalent for MySQL
- Mysql::Error: Specified key was too long; max key length is 1000 bytes
- How to convert all tables from MyISAM into InnoDB?
- How to create relationships in MySQL
- Mysql Improve Search Performance with wildcards (%%)
- ALTER TABLE to add a composite primary key
- Set value to NULL in MySQL
- MySql Single Table, Select last 7 days and include empty rows
- mysql SQL: specific item to be first and then to sort the rest of the items
- When is a timestamp (auto) updated?
- MySQL: Computed Column
- How do I extract Month and Year in a MySQL date and compare them?