Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.148.250.110
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
www /
server /
mysql /
mysql-test /
suite /
gcol /
r /
[ HOME SHELL ]
Name
Size
Permission
Action
federated_gcol.result
1.56
KB
-rw-r--r--
gcol_archive.result
579
B
-rw-r--r--
gcol_blackhole.result
581
B
-rw-r--r--
gcol_blocked_sql_funcs_innodb....
12.25
KB
-rw-r--r--
gcol_blocked_sql_funcs_myisam....
12.42
KB
-rw-r--r--
gcol_bug20746926.result
928
B
-rw-r--r--
gcol_bugfixes.result
21.67
KB
-rw-r--r--
gcol_column_def_options_innodb...
27.09
KB
-rw-r--r--
gcol_column_def_options_myisam...
23.98
KB
-rw-r--r--
gcol_csv.result
550
B
-rw-r--r--
gcol_falcon.result
544
B
-rw-r--r--
gcol_handler_innodb.result
2.19
KB
-rw-r--r--
gcol_handler_myisam.result
2.19
KB
-rw-r--r--
gcol_ins_upd_innodb.result
20.88
KB
-rw-r--r--
gcol_ins_upd_myisam.result
14.62
KB
-rw-r--r--
gcol_keys_innodb.result
53.55
KB
-rw-r--r--
gcol_keys_myisam.result
38.42
KB
-rw-r--r--
gcol_memory.result
578
B
-rw-r--r--
gcol_merge.result
631
B
-rw-r--r--
gcol_ndb.result
582
B
-rw-r--r--
gcol_non_stored_columns_innodb...
7.11
KB
-rw-r--r--
gcol_non_stored_columns_myisam...
7.11
KB
-rw-r--r--
gcol_partition_innodb.result
2.86
KB
-rw-r--r--
gcol_partition_myisam.result
5.43
KB
-rw-r--r--
gcol_rejected_innodb.result
245
B
-rw-r--r--
gcol_rejected_myisam.result
27.11
KB
-rw-r--r--
gcol_rollback.result
1.43
KB
-rw-r--r--
gcol_select_innodb.result
57.17
KB
-rw-r--r--
gcol_select_myisam.result
37.68
KB
-rw-r--r--
gcol_supported_sql_funcs_innod...
85.02
KB
-rw-r--r--
gcol_supported_sql_funcs_myisa...
85.02
KB
-rw-r--r--
gcol_trigger_sp_innodb.result
1.68
KB
-rw-r--r--
gcol_trigger_sp_myisam.result
1.68
KB
-rw-r--r--
gcol_update.result
2.05
KB
-rw-r--r--
gcol_view_innodb.result
7.74
KB
-rw-r--r--
gcol_view_myisam.result
7.74
KB
-rw-r--r--
rpl_gcol.result
2.98
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gcol_non_stored_columns_innodb.result
SET @@session.default_storage_engine = 'InnoDB'; # Case 1. All non-stored columns. create table t1 (a int generated always as (2+3) virtual); insert into t1 values (default); select * from t1; a 5 insert into t1 values (default); select * from t1; a 5 5 drop table t1; # Case 2. CREATE # - Column1: "real" # - Column 2: virtual non-stored create table t1 (a int, b int generated always as (-a) virtual); insert into t1 values (1,default); select * from t1; a b 1 -1 insert into t1 values (2,default); select * from t1 order by a; a b 1 -1 2 -2 drop table t1; # Case 3. CREATE # - Column1: "real" # - Column 2: virtual stored create table t1 (a int, b int generated always as (-a) stored); insert into t1 values (1,default); select * from t1; a b 1 -1 insert into t1 values (2,default); select * from t1 order by a; a b 1 -1 2 -2 drop table t1; # Case 4. CREATE # - Column1: virtual non-stored # - Column2: "real" create table t1 (a int generated always as (-b) virtual, b int); insert into t1 values (default,1); select * from t1; a b -1 1 insert into t1 values (default,2); select * from t1 order by a; a b -2 2 -1 1 drop table t1; # Case 5. CREATE # - Column1: virtual stored # - Column2: "real" create table t1 (a int generated always as (-b) stored, b int); insert into t1 values (default,1); select * from t1; a b -1 1 insert into t1 values (default,2); select * from t1 order by a; a b -2 2 -1 1 drop table t1; # Case 6. CREATE # - Column1: "real" # - Column2: virtual non-stored # - Column3: virtual stored create table t1 (a int, b int generated always as (-a), c int generated always as (-a) stored); insert into t1 values (1,default,default); select * from t1; a b c 1 -1 -1 insert into t1 values (2,default,default); select * from t1 order by a; a b c 1 -1 -1 2 -2 -2 drop table t1; # Case 7. ALTER. Modify virtual stored -> virtual non-stored create table t1 (a int, b int generated always as (a % 2) stored); alter table t1 modify b int generated always as (a % 2) virtual; ERROR HY000: 'Changing the STORED status' is not supported for generated columns. show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `b` int(11) GENERATED ALWAYS AS ((`a` % 2)) STORED ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 8. ALTER. Modify virtual non-stored -> virtual stored create table t1 (a int, b int generated always as (a % 2) virtual); alter table t1 modify b int generated always as (a % 2) stored; ERROR HY000: 'Changing the STORED status' is not supported for generated columns. show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `b` int(11) GENERATED ALWAYS AS ((`a` % 2)) VIRTUAL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 9. CREATE LIKE # - Column1: "real" # - Column2: virtual non-stored # - Column3: virtual stored create table t1 (a int, b int generated always as (-a), c int generated always as (-a) stored); create table t2 like t1; insert into t2 values (1,default,default); select * from t2; a b c 1 -1 -1 insert into t2 values (2,default,default); select * from t2 order by a; a b c 1 -1 -1 2 -2 -2 drop table t2; drop table t1; # Case 10. ALTER. Dropping a virtual non-stored column. # - Column1: virtual non-stored # - Column2: "real" create table t1 (a int generated always as (-b) virtual, b int, c varchar(5)); insert into t1 values (default,1,'v1'); insert into t1 values (default,2,'v2'); select * from t1 order by b; a b c -1 1 v1 -2 2 v2 alter table t1 drop column a; select * from t1 order by b; b c 1 v1 2 v2 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `b` int(11) DEFAULT NULL, `c` varchar(5) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 11. ALTER. Dropping a virtual stored column. # - Column1: virtual stored # - Column2: "real" create table t1 (a int generated always as (-b) stored, b int, c char(5)); insert into t1 values (default,1,'v1'); insert into t1 values (default,2,'v2'); select * from t1 order by b; a b c -1 1 v1 -2 2 v2 alter table t1 drop column a; select * from t1 order by b; b c 1 v1 2 v2 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `b` int(11) DEFAULT NULL, `c` char(5) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 12. ALTER. Adding a new virtual non-stored column. create table t1 (a int, b datetime); insert into t1 values (1,'2008-09-04'); insert into t1 values (2,'2008-09-05'); select * from t1 order by a; a b 1 2008-09-04 00:00:00 2 2008-09-05 00:00:00 alter table t1 add column c int generated always as (dayofyear(b)) virtual after a; select * from t1 order by a; a c b 1 248 2008-09-04 00:00:00 2 249 2008-09-05 00:00:00 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `c` int(11) GENERATED ALWAYS AS (dayofyear(`b`)) VIRTUAL, `b` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 13. ALTER. Adding a new virtual stored column. create table t1 (a int, b datetime); insert into t1 values (1,'2008-09-04'); insert into t1 values (2,'2008-09-05'); select * from t1 order by a; a b 1 2008-09-04 00:00:00 2 2008-09-05 00:00:00 alter table t1 add column c int generated always as (dayofyear(b)) stored after a; select * from t1 order by a; a c b 1 248 2008-09-04 00:00:00 2 249 2008-09-05 00:00:00 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `c` int(11) GENERATED ALWAYS AS (dayofyear(`b`)) STORED, `b` datetime DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 14. ALTER. Changing the expression of a virtual stored column. create table t1 (a int, b datetime, c int generated always as (week(b)) stored); insert into t1 values (1,'2008-09-04',default); insert into t1 values (2,'2008-09-05',default); select * from t1 order by a; a b c 1 2008-09-04 00:00:00 35 2 2008-09-05 00:00:00 35 alter table t1 change column c c int generated always as (week(b,1)) stored; select * from t1 order by a; a b c 1 2008-09-04 00:00:00 36 2 2008-09-05 00:00:00 36 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `b` datetime DEFAULT NULL, `c` int(11) GENERATED ALWAYS AS (week(`b`,1)) STORED ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; # Case 15. ALTER. Changing the expression of a virtual non-stored column. create table t1 (a int, b datetime, c int generated always as (week(b)) virtual); insert into t1 values (1,'2008-09-04',default); insert into t1 values (2,'2008-09-05',default); select * from t1 order by a; a b c 1 2008-09-04 00:00:00 35 2 2008-09-05 00:00:00 35 alter table t1 change column c c int generated always as (week(b,1)) virtual; select * from t1 order by a; a b c 1 2008-09-04 00:00:00 36 2 2008-09-05 00:00:00 36 show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) DEFAULT NULL, `b` datetime DEFAULT NULL, `c` int(11) GENERATED ALWAYS AS (week(`b`,1)) VIRTUAL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t1; DROP VIEW IF EXISTS v1,v2; DROP TABLE IF EXISTS t1,t2,t3; DROP PROCEDURE IF EXISTS p1; DROP FUNCTION IF EXISTS f1; DROP TRIGGER IF EXISTS trg1; DROP TRIGGER IF EXISTS trg2; set sql_warnings = 0;
Close