单表王五涨工资操作

 

 

 

UPDATE userinfo SET salary=1700 WHERE UserID=142

 

SELECT dept,count(*) as count FROM userinfo GROUP BY dept HAVING count(dept) >1

ORDER BY count DESC

 

posted @ 2020-12-18 20:11  张泽涛的  阅读(57)  评论(0编辑  收藏  举报