摘要: 1. select max(id) from tablename 2.SELECT LAST_INSERT_ID() 函数 LAST_INSERT_ID 是与table无关的,如果向表a插入数据后,再向表b插入数据,LAST_INSERT_ID会改变。 在多用户交替插入数据的情况下max(id)显然 阅读全文
posted @ 2017-06-29 14:01 ma_fighting 阅读(13489) 评论(0) 推荐(1)
摘要: Mac下使用lsof(list open files)来查看端口占用情况,lsof 是一个列出当前系统打开文件的工具。 使用 lsof 会列举所有占用的端口列表: 1 $ lsof 1 $ lsof 1 $ lsof 1 $ lsof $ lsof 使用less可以用于分页展示,如: 1 $ lso 阅读全文
posted @ 2017-06-29 12:37 ma_fighting 阅读(318) 评论(0) 推荐(0)
摘要: SELECT * FROM equip_center where Center_name is not NULL select * from test1 where centerid in(select centerid FROM center where name='a') update test 阅读全文
posted @ 2017-06-29 11:26 ma_fighting 阅读(267) 评论(0) 推荐(0)
历史天气查