做权限的时候,通过role角色中的roleid,在auth权限中查找角色对应的权限. sql语句: SELECT authName from auth where authId in (1,2,3,4,5) in后面的东西即是角色所具有的各个权限的id,可以查出1,2,3,4,5对应的权限名字. 于是结合auth表,直接使用,sql语句为: SELECT authName from auth where authId in (SELECT authIds from role where rol
编写bat文件 @echo off set "date_string=%date:~0,4%-%date:~5,2%-%date:~8,2%" set "time_string=%time:~0,2%-%time:~3,2%-%time:~6,2%" echo "==========开始备份数据库============" set back_path=c:\xym\xymsql if not exist %back_path% md %back_
通过show variables like '%time_zone%'; 查看时区: CST 时区 名为 CST 的时区是一个很混乱的时区,有四种含义: 美国中部时间 Central Standard Time (USA) UTC-06:00 澳大利亚中部时间 Central Standard Time (Australia) UTC+09:30 中国标准时 China Standard Time UTC+08:00 古巴标准时 Cuba Standard Time UTC-04:00 如果你遇
每天叫醒自己的不是闹钟,而是梦想 数据库: create table t1(id int primary key not null auto_increment,name varchar(32),password varchar(32)); insert into t1(name,password) values('admin','123'); insert into t1(name,password) values('zhangsan','123'); insert into t1(name,