用户工具

站点工具


liux:常用sql语句

创建一个用户,用户名Hello,密码12345,只能增删改查nccs数据库中的Icsync表

grant select,update, insert,delete on nccs.IcSync to 'Hello'@'%' identified by "12345"

查看Icsync表数据:

select * from Icsync

修改平台admin账户的密码:

update Users set Pass_Word=password('12345678') where User_ID=0;

按条件批量删除/修改数据:

delete from Users where User_ID >1 #删除除管理员外的所有数据
update Users set Dev_privilege=1 where User_ID>1  #升级所有账号为管理员权限
liux/常用sql语句.txt · 最后更改: 2025/09/08 22:51 (外部编辑)