摘要:
vi /etc/my.cnf 在#log_bin=mysql_bin后添加下面三行数据 server-id =1 log-bin=master (注:此步操作为开启binlog) binlog_format=row 阅读全文
posted @ 2022-02-23 20:04
闲着没事学学习
阅读(62)
评论(0)
推荐(0)
摘要:
命令语法:update table_name set 字段=new_values .... where (注意:添加条件) 例如:更新前 root@leadchina 07:07:03->select * from student; + + + + + | id | name | age | dep 阅读全文
posted @ 2022-02-23 19:34
闲着没事学学习
阅读(98)
评论(0)
推荐(0)
摘要:
可以查看是不是能优化查询 explain select * from student where dept='shuxue' \G; *************************** 1. row *************************** id: 1 select_type: S 阅读全文
posted @ 2022-02-23 19:02
闲着没事学学习
阅读(48)
评论(0)
推荐(0)

浙公网安备 33010602011771号