<p>1、以root(也可用其它有MySQL用户权限的用户)身份登录<br />2、下面创建一个test用户,密码为test,并且只能对picture数据库进行操作的命令<br />mysql>GRANT ALL ON picture.* TO test IDENTIFIED BY "test";</p><p>GRANT语句的语法看上去像这样:<br />GRANT privileges (columns) ON what TO user IDEN...【阅读全文】
undo实验(update的一致性读):--使用非sys用户进行会话I:create table t (x int,y int);insert into t values(1,1);commit;创建触发器:create or replace trigger t_bufferbefore update on t for each rowbegindbms_output.put_line ( 'old.x = '|| :old.x||' ,old.y = '||:old.y);dbms_outp...【阅读全文】