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

📄 memory_trig_0407.result

📁 这个文件是windows mysql源码
💻 RESULT
📖 第 1 页 / 共 2 页
字号:
USE test;drop table if exists tb3;create table tb3 (f118 char not null DEFAULT 'a',f119 char binary not null DEFAULT b'101',f120 char ascii not null DEFAULT b'101',f121 char(50),f122 char(50),f129 binary not null DEFAULT b'101',f130 tinyint not null DEFAULT 99,f131 tinyint unsigned not null DEFAULT 99,f132 tinyint zerofill not null DEFAULT 99,f133 tinyint unsigned zerofill not null DEFAULT 99,f134 smallint not null DEFAULT 999,f135 smallint unsigned not null DEFAULT 999,f136 smallint zerofill not null DEFAULT 999,f137 smallint unsigned zerofill not null DEFAULT 999,f138 mediumint not null DEFAULT 9999,f139 mediumint unsigned not null DEFAULT 9999,f140 mediumint zerofill not null DEFAULT 9999,f141 mediumint unsigned zerofill not null DEFAULT 9999,f142 int not null DEFAULT 99999,f143 int unsigned not null DEFAULT 99999,f144 int zerofill not null DEFAULT 99999,f145 int unsigned zerofill not null DEFAULT 99999,f146 bigint not null DEFAULT 999999,f147 bigint unsigned not null DEFAULT 999999,f148 bigint zerofill not null DEFAULT 999999,f149 bigint unsigned zerofill not null DEFAULT 999999,f150 decimal not null DEFAULT 999.999,f151 decimal unsigned not null DEFAULT 999.17,f152 decimal zerofill not null DEFAULT 999.999,f153 decimal unsigned zerofill,f154 decimal (0),f155 decimal (64),f156 decimal (0) unsigned,f157 decimal (64) unsigned,f158 decimal (0) zerofill,f159 decimal (64) zerofill,f160 decimal (0) unsigned zerofill,f161 decimal (64) unsigned zerofill,f162 decimal (0,0),f163 decimal (63,30),f164 decimal (0,0) unsigned,f165 decimal (63,30) unsigned,f166 decimal (0,0) zerofill,f167 decimal (63,30) zerofill,f168 decimal (0,0) unsigned zerofill,f169 decimal (63,30) unsigned zerofill,f170 numeric,f171 numeric unsigned,f172 numeric zerofill,f173 numeric unsigned zerofill,f174 numeric (0),f175 numeric (64)) engine = <engine_to_be_used>;Warnings:Note	1265	Data truncated for column 'f150' at row 1Note	1265	Data truncated for column 'f151' at row 1Note	1265	Data truncated for column 'f152' at row 1Testcase: 3.5:--------------create User test_general@localhost;set password for test_general@localhost = password('PWD');revoke ALL PRIVILEGES, GRANT OPTION FROM test_general@localhost;create User test_super@localhost;set password for test_super@localhost = password('PWD');grant ALL on *.* to test_super@localhost with grant OPTION;connect(localhost,test_general,PWD,test,MASTER_MYPORT,MASTER_MYSOCK);connect(localhost,test_super,PWD,test,MASTER_MYPORT,MASTER_MYSOCK);Testcase 3.5.4:---------------use test;Testcase 3.5.4.1:-----------------create database db_drop;Use db_drop;create table t1 (f1 char(30)) engine = <engine_to_be_used>;grant INSERT, SELECT on db_drop.t1 to test_general;Use db_drop;Create trigger trg1 BEFORE INSERT on t1for each row set new.f1='Trigger 3.5.4.1';Use db_drop;Insert into t1 values ('Insert error 3.5.4.1');Select * from t1 order by f1;f1Trigger 3.5.4.1drop trigger trg1;select trigger_schema, trigger_name, event_object_tablefrom information_schema.triggers order by trigger_name;trigger_schema	trigger_name	event_object_tableInsert into t1 values ('Insert no trigger 3.5.4.1');Select * from t1 order by f1;f1Insert no trigger 3.5.4.1Trigger 3.5.4.1drop trigger trg1;drop database if exists db_drop;revoke ALL PRIVILEGES, GRANT OPTION FROM 'test_general'@'localhost';Testcase 3.5.4.2:-----------------create database db_drop2;Use db_drop2;drop table if exists t1_432 ;create table t1_432 (f1 char (30)) engine = <engine_to_be_used>;Drop trigger tr_does_not_exit;ERROR HY000: Trigger does not existdrop table if exists t1_432 ;drop database  if exists db_drop2;Testcase 3.5.4.3:-----------------create database db_drop3;Use db_drop3;drop table if exists t1_433 ;drop table if exists t1_433a ;create table t1_433 (f1 char (30)) engine = <engine_to_be_used>;create table t1_433a (f1a char (5)) engine = <engine_to_be_used>;CREATE TRIGGER trg3 BEFORE INSERT on t1_433 for each rowset new.f1 = 'Trigger 3.5.4.3';Drop trigger t1.433.trg3;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.trg3' at line 1Drop trigger db_drop3.t1.433.trg3;ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.433.trg3' at line 1Drop trigger mysql.trg3;ERROR HY000: Trigger does not existDrop trigger tbx.trg3;ERROR HY000: Trigger does not existDrop trigger db_drop3.trg3;drop table if exists t1_433;drop table if exists t1_433a;drop database if exists db_drop3;Testcase 3.5.4.4:-----------------create database db_drop4;Use db_drop4;create table t1 (f1 char(30)) engine = <engine_to_be_used>;grant INSERT, SELECT on db_drop4.t1 to test_general;Create trigger trg4 BEFORE INSERT on t1for each row set new.f1='Trigger 3.5.4.4';Use db_drop4;Insert into t1 values ('Insert 3.5.4.4');Select * from t1;f1Trigger 3.5.4.4Drop database db_drop4;Show databases;Databaseinformation_schemamysqltestselect trigger_schema, trigger_name, event_object_tablefrom information_schema.triggerswhere information_schema.triggers.trigger_name='trg4';trigger_schema	trigger_name	event_object_tablecreate database db_drop4;Use db_drop4;create table t1 (f1 char(30)) engine = <engine_to_be_used>;grant INSERT, SELECT on db_drop4.t1 to test_general;Insert into t1 values ('2nd Insert 3.5.4.4');Select * from t1;f12nd Insert 3.5.4.4drop trigger trg4;ERROR HY000: Trigger does not existdrop database if exists db_drop4;revoke ALL PRIVILEGES, GRANT OPTION FROM 'test_general'@'localhost';Testcase 3.5.4.5:-----------------create database db_drop5;Use db_drop5;create table t1 (f1 char(50)) engine = <engine_to_be_used>;grant INSERT, SELECT on t1 to test_general;Create trigger trg5 BEFORE INSERT on t1for each row set new.f1='Trigger 3.5.4.5';Use db_drop5;Insert into t1 values ('Insert 3.5.4.5');Select * from t1;f1Trigger 3.5.4.5Drop table t1;Show tables;Tables_in_db_drop5select trigger_schema, trigger_name, event_object_tablefrom information_schema.triggerswhere information_schema.triggers.trigger_name='trg5';trigger_schema	trigger_name	event_object_tablecreate table t1 (f1 char(50)) engine = <engine_to_be_used>;grant INSERT, SELECT on t1 to test_general;Insert into t1 values ('2nd Insert 3.5.4.5');Select * from t1;f12nd Insert 3.5.4.5drop trigger trg5;ERROR HY000: Trigger does not existdrop database if exists db_drop5;revoke ALL PRIVILEGES, GRANT OPTION FROM 'test_general'@'localhost';Testcase 3.5.5:---------------use test;Testcase 3.5.5.1:-----------------Create trigger trg1 before INSERT on t100 for each row set new.f2=1000;ERROR 42S02: Table 'test.t100' doesn't existTestcase 3.5.5.2:-----------------Create temporary table t1_temp (f1 bigint signed, f2 bigint unsigned);Create trigger trg2 before INSERTon t1_temp for each row set new.f2=9999;ERROR HY000: Trigger's 't1_temp' is view or temporary tabledrop table t1_temp;Testcase 3.5.5.3:-----------------Create view vw3 as select f118 from tb3;Create trigger trg3 before INSERTon vw3 for each row set new.f118='s';ERROR HY000: 'test.vw3' is not BASE TABLEdrop view vw3;Testcase 3.5.5.4:-----------------create database dbtest_one;create database dbtest_two;use dbtest_two;create table t2 (f1 char(15)) engine = <engine_to_be_used>;use dbtest_one;create trigger trg4 before INSERT

⌨️ 快捷键说明

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