用户管理
查询用户 use mysql select * from user use mydb select * from mysql.user
– 创建用户 create user ‘zhangsan’ identified by ‘zhangsan’ – create user ‘用户名’‘主机名’ identified by ‘密码’ create user ‘lisi’‘localhost’ identified by ‘…
角色管理
MySQL8新增的功能
– 创建角色 role create role ‘dev_read’,‘dev_write’
– 给角色分配权限 grant select on mydb.* to ‘dev_read’ grant insert,update,delete on mydb.* to ‘dev_write’
– 创建用户 create user ‘user1’‘localhost’ identified b…
翻译自 Radio Button
本章讨论单选按钮控件和RadioButton类,该类的一个专门实现ToggleButton。
可以选择或取消选择单选按钮控件。通常,单选按钮组合成一个组,其中一次只能选择一个按钮。此行为将它们与切换按钮区分开来,因为组…
简单查询
①求js9901班的学生学号和姓名。 select s_no,s_name from student where class_no ‘js9901’ ②求计算机系的所有班级号和班级名。 select class_no,class_name from class where class_dept ‘计算机系’ ③求选修了课程的学生学号。 select s_no from choice ④…