1. Log MySQL
MySQL -u root -p
2. The function returns the current date and time:
LOCALTIMESTAMP () or now ()
3.删除记录
DELETE FROM table_name WHERE condition;
举例:
delete from temprature_humidity_table where date = "0000-00-00 00:00:00"
4. 插入记录
INSERT INTO temprature_humidity_table(date) VALUES(now())
The replacement recording
replace into table
column name values (expr | default ...);
6. Modify field contents
UPDATE table SET column name = Name the new value of a WHERE column name = value
if you want to change all, ignore condition.
replace into temprature_humidity_table date values ()
"INSERT INTO temprature_humidity_table(temprature, humidity) VALUES(0.3,0.311);",