identified

12 权限管理

ぃ、小莉子 提交于 2020-02-16 13:50:36
1 创建账号 #本地账号 create user 'root'@'localhost' identified by 'password'; #mysql -uroot -p123 #远程账号 create user 'root'@'192.168.31.10' identified by 'password'; #mysql -uroot -p123 -h create user 'root'@'192.168.31.%' identified by 'password'; #mysql -uroot -p123 -h create user 'root'@'%' identified by 'password'; #mysql -uroot -p123 -h    2 授权 user: *.* db: db1.* tables_priv: db1.t1 columns_priv:id,name 来源: https://www.cnblogs.com/zhujing666/p/12316473.html

[20190918]关于函数索引问题.txt

主宰稳场 提交于 2019-12-20 03:22:02
[20190918]关于函数索引问题.txt 1.环境: SCOTT@test01p> @ ver1 PORT_STRING VERSION BANNER CON_ID ------------------------------ -------------- -------------------------------------------------------------------------------- ---------- IBMPC/WIN_NT64-9.1.0 12.2.0.1.0 Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production 0 create table t as select 1 id1, rownum id2 ,'test' name from dual connect by level<1e4; insert into t values (1e4,1e4,'abcd'); commit ; create index if_t_id2 on t(decode(id1, 1, to_number(null), id2)); --//分析表略。 --//简单说明,使用to_number(null)保证返回数据类型是number类型的NULL值。 2