⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lowercase_view.test

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 TEST
字号:
--disable_warningsdrop table if exists t1Aa,t2Aa,v1Aa,v2Aa;drop view if exists t1Aa,t2Aa,v1Aa,v2Aa;drop database if exists MySQLTest;--enable_warnings## different cases in VIEW#create database MySQLTest;use MySQLTest;create table TaB (Field int);create view ViE as select * from TAb;show create table VIe;drop database MySQLTest;use test;## test of updating and fetching from the same table check#create table t1Aa (col1 int);create table t2aA (col1 int);create view v1Aa as select * from t1aA;create view v2aA as select * from v1aA;create view v3Aa as select v2Aa.col1 from v2aA,t2Aa where v2Aa.col1 = t2aA.col1;-- error 1443update v2aA set col1 = (select max(col1) from v1Aa);-- error 1443update v2Aa set col1 = (select max(col1) from t1Aa);-- error 1093update v2aA set col1 = (select max(col1) from v2Aa);-- error 1443update v2aA,t2Aa set v2Aa.col1 = (select max(col1) from v1aA) where v2aA.col1 = t2aA.col1;-- error 1443update t1aA,t2Aa set t1Aa.col1 = (select max(col1) from v1Aa) where t1aA.col1 = t2aA.col1;-- error 1093update v1aA,t2Aa set v1Aa.col1 = (select max(col1) from v1aA) where v1Aa.col1 = t2aA.col1;-- error 1443update t2Aa,v2Aa set v2aA.col1 = (select max(col1) from v1aA) where v2Aa.col1 = t2aA.col1;-- error 1443update t2Aa,t1Aa set t1aA.col1 = (select max(col1) from v1Aa) where t1Aa.col1 = t2aA.col1;-- error 1443update t2Aa,v1aA set v1Aa.col1 = (select max(col1) from v1aA) where v1Aa.col1 = t2aA.col1;-- error 1443update v2aA,t2Aa set v2Aa.col1 = (select max(col1) from t1aA) where v2aA.col1 = t2aA.col1;-- error 1093update t1Aa,t2Aa set t1aA.col1 = (select max(col1) from t1Aa) where t1aA.col1 = t2aA.col1;-- error 1443update v1aA,t2Aa set v1Aa.col1 = (select max(col1) from t1Aa) where v1aA.col1 = t2aA.col1;-- error 1093update t2Aa,v2Aa set v2aA.col1 = (select max(col1) from t1aA) where v2Aa.col1 = t2aA.col1;-- error 1093update t2Aa,t1Aa set t1aA.col1 = (select max(col1) from t1Aa) where t1aA.col1 = t2aA.col1;-- error 1093update t2Aa,v1Aa set v1aA.col1 = (select max(col1) from t1Aa) where v1Aa.col1 = t2aA.col1;-- error 1093update v2aA,t2Aa set v2Aa.col1 = (select max(col1) from v2aA) where v2Aa.col1 = t2aA.col1;-- error 1443update t1aA,t2Aa set t1Aa.col1 = (select max(col1) from v2aA) where t1aA.col1 = t2aA.col1;-- error 1443update v1aA,t2Aa set v1Aa.col1 = (select max(col1) from v2Aa) where v1aA.col1 = t2aA.col1;-- error 1443update t2Aa,v2aA set v2Aa.col1 = (select max(col1) from v2aA) where v2Aa.col1 = t2aA.col1;-- error 1443update t2Aa,t1Aa set t1aA.col1 = (select max(col1) from v2aA) where t1Aa.col1 = t2aA.col1;-- error 1443update t2Aa,v1Aa set v1aA.col1 = (select max(col1) from v2Aa) where v1Aa.col1 = t2aA.col1;-- error 1443update v3aA set v3Aa.col1 = (select max(col1) from v1aA);-- error 1443update v3aA set v3Aa.col1 = (select max(col1) from t1aA);-- error 1443update v3aA set v3Aa.col1 = (select max(col1) from v2aA);-- error 1093update v3aA set v3Aa.col1 = (select max(col1) from v3aA);-- error 1443delete from v2Aa where col1 = (select max(col1) from v1Aa);-- error 1443delete from v2aA where col1 = (select max(col1) from t1Aa);-- error 1093delete from v2Aa where col1 = (select max(col1) from v2aA);-- error 1443delete v2Aa from v2aA,t2Aa where (select max(col1) from v1aA) > 0 and v2Aa.col1 = t2aA.col1;-- error 1443delete t1aA from t1Aa,t2Aa where (select max(col1) from v1Aa) > 0 and t1aA.col1 = t2aA.col1;-- error 1093delete v1aA from v1Aa,t2Aa where (select max(col1) from v1aA) > 0 and v1Aa.col1 = t2aA.col1;-- error 1443delete v2aA from v2Aa,t2Aa where (select max(col1) from t1Aa) > 0 and v2aA.col1 = t2aA.col1;-- error 1093delete t1aA from t1Aa,t2Aa where (select max(col1) from t1aA) > 0 and t1Aa.col1 = t2aA.col1;-- error 1443delete v1aA from v1Aa,t2Aa where (select max(col1) from t1aA) > 0 and v1aA.col1 = t2aA.col1;-- error 1093delete v2Aa from v2aA,t2Aa where (select max(col1) from v2Aa) > 0 and v2aA.col1 = t2aA.col1;-- error 1443delete t1Aa from t1aA,t2Aa where (select max(col1) from v2Aa) > 0 and t1Aa.col1 = t2aA.col1;-- error 1443delete v1Aa from v1aA,t2Aa where (select max(col1) from v2aA) > 0 and v1Aa.col1 = t2aA.col1;-- error 1443insert into v2Aa values ((select max(col1) from v1aA));-- error 1443insert into t1aA values ((select max(col1) from v1Aa));-- error 1443insert into v2aA values ((select max(col1) from v1aA));-- error 1443insert into v2Aa values ((select max(col1) from t1Aa));-- error 1093insert into t1aA values ((select max(col1) from t1Aa));-- error 1443insert into v2aA values ((select max(col1) from t1aA));-- error 1093insert into v2Aa values ((select max(col1) from v2aA));-- error 1443insert into t1Aa values ((select max(col1) from v2Aa));-- error 1093insert into v2aA values ((select max(col1) from v2Aa));-- error 1443insert into v3Aa (col1) values ((select max(col1) from v1Aa));-- error 1443insert into v3aA (col1) values ((select max(col1) from t1aA));-- error 1443insert into v3Aa (col1) values ((select max(col1) from v2aA));drop view v3aA,v2Aa,v1aA;drop table t1Aa,t2Aa;## aliases in VIEWs#create table t1Aa (col1 int);create view v1Aa as select col1 from t1Aa as AaA;show create view v1AA;drop view v1AA;select Aaa.col1 from t1Aa as AaA;create view v1Aa as select Aaa.col1 from t1Aa as AaA;drop view v1AA;create view v1Aa as select AaA.col1 from t1Aa as AaA;show create view v1AA;drop view v1AA;drop table t1Aa;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -