memory_views.result

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 758 行 · 第 1/5 页

RESULT
758
字号
CREATE VIEW    AS SELECT 1;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 'AS SELECT 1' at line 1CREATE VIEW v1    SELECT 1;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 'SELECT 1' at line 1CREATE VIEW v1 AS         ;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 '' at line 1Testcase 3.3.1.6 --------------------------------------------------------------------------------DROP VIEW  IF EXISTS v1 ;CREATE or REPLACE                       VIEW v1as SELECT * from tb2 limit 100 ;CREATE or REPLACE ALGORITHM = UNDEFINED VIEW v1as SELECT * from tb2 limit 100 ;CREATE or REPLACE ALGORITHM = MERGE     VIEW v1as SELECT * from tb2 limit 100 ;Warnings:Warning	1354	View merge algorithm can't be used here for now (assumed undefined algorithm)CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1as SELECT * from tb2 limit 100 ;CREATE or REPLACE ALGORITHM = TEMPTABLE VIEW v1as SELECT * from tb2 limit 100 ;CREATE or REPLACE           = TEMPTABLE VIEW v1as SELECT * from tb2 limit 100 ;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 '= TEMPTABLE VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE ALGORITHM   TEMPTABLE VIEW v1as SELECT * from tb2 limit 100 ;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 'TEMPTABLE VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE ALGORITHM =           VIEW v1as SELECT * from tb2 limit 100 ;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 'VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE TEMPTABLE = ALGORITHM VIEW v1as SELECT * from tb2 limit 100 ;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 'TEMPTABLE = ALGORITHM VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE TEMPTABLE - ALGORITHM VIEW v1as SELECT * from tb2 limit 100 ;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 'TEMPTABLE - ALGORITHM VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE GARBAGE   = TEMPTABLE VIEW v1as SELECT * from tb2 limit 100 ;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 'GARBAGE   = TEMPTABLE VIEW v1as SELECT * from tb2 limit 100' at line 1CREATE or REPLACE ALGORITHM = GARBAGE VIEW v1as SELECT * from tb2 limit 100 ;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 'GARBAGE VIEW v1as SELECT * from tb2 limit 100' at line 1Drop view if exists v1 ;CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1;CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH          CHECK OPTION;CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK OPTION;CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH LOCAL    CHECK OPTION;CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH NO       CHECK OPTION;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 'NO       CHECK OPTION' at line 2CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1      CASCADED CHECK OPTION;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 'CASCADED CHECK OPTION' at line 2CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH CASCADED       OPTION;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 'OPTION' at line 2CREATE or REPLACE VIEW v1AS SELECT * from tb2 where f59 < 1 WITH CASCADED CHECK       ;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 '' at line 2Testcase 3.3.1.7 --------------------------------------------------------------------------------DROP VIEW  IF EXISTS v1 ;Create view test.v1 AS Select * from test.tb2 limit 100 ;Alter view test.v1 AS Select F59 from test. tb2 limit 100 ;Drop view test.v1 ;Create view v1 AS Select * from test.tb2 limit 100 ;Alter view v1 AS Select F59 from test.tb2 limit 100 ;Drop view v1 ;Testcase 3.3.1.A0 --------------------------------------------------------------------------------DROP TABLE IF EXISTS t1 ;DROP VIEW  IF EXISTS v1 ;DROP VIEW  IF EXISTS V1 ;CREATE TABLE t1 (f1 NUMERIC(4)) ENGINE = memory;INSERT INTO t1 VALUES(1111), (2222);CREATE VIEW v1 AS SELECT * FROM t1 WHERE f1 = 1111;CREATE VIEW V1 AS SELECT * FROM t1 WHERE f1 = 2222;SELECT * FROM v1;f11111DROP TABLE IF EXISTS t1 ;DROP VIEW  IF EXISTS v1 ;DROP VIEW  IF EXISTS V1 ;Testcase 3.3.1.8 --------------------------------------------------------------------------------Create view select AS Select * from test.tb2 limit 100;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 'select AS Select * from test.tb2 limit 100' at line 1Create view as AS Select * from test.tb2 limit 100;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 'as AS Select * from test.tb2 limit 100' at line 1Create view where AS Select * from test.tb2 limit 100;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 'where AS Select * from test.tb2 limit 100' at line 1Create view from AS Select * from test.tb2 limit 100;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 'from AS Select * from test.tb2 limit 100' at line 1Create view while AS Select * from test.tb2 limit 100;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 'while AS Select * from test.tb2 limit 100' at line 1Create view asdkj*(&*&&^ as Select * from test.tb2 limit 100 ;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 '*(&*&&^ as Select * from test.tb2 limit 100' at line 1Drop view if exists test.procedure ;Create view test.procedure as Select * from test.tb2 limit 100 ;Drop view if exists test.procedure ;Testcase 3.3.1.9 --------------------------------------------------------------------------------Drop TABLE IF EXISTS t1 ;Drop VIEW  IF EXISTS v1;Drop VIEW  IF EXISTS v2;Drop VIEW  IF EXISTS v3;CREATE TABLE t1 ( f1 char(5));INSERT INTO t1 SET f1 = 'abcde';CREATE VIEW v1 AS SELECT f1 FROM t1;CREATE VIEW v2 AS SELECT *  FROM v1;DROP TABLE t1;SELECT * FROM v1;ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themDELETE FROM v1;ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themUPDATE v1 SET f1 = 'aaaaa';ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themINSERT INTO v1 SET f1 = "fffff";ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themSELECT * FROM v2;ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themDELETE FROM v2;ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themUPDATE v2 SET f1 = 'aaaaa';ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themINSERT INTO v2 SET f1 = "fffff";ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themDROP VIEW v1;SELECT * FROM v2;ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themDELETE FROM v2;ERROR HY000: View 'test.v2' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themUPDATE v2 SET f1 = 'aaaaa';ERROR HY000

⌨️ 快捷键说明

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