memory_views.result
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· RESULT 代码 · 共 758 行 · 第 1/5 页
RESULT
758 行
CREATE or REPLACE VIEW v1 AS Select 1FROM (SELECT 1 FROM t1) my_table;ERROR HY000: View's SELECT contains a subquery in the FROM clauseCREATE VIEW v1 AS SELECT f1 FROM t1;CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW SET @a:=1 ;SET @a:=0 ;SELECT @a ;@a0INSERT INTO v1 VALUES (1) ;SELECT @a ;@a1SELECT * FROM t1;f11DROP TRIGGER tr1 ;SET @a:=0 ;CREATE TRIGGER tr1 BEFORE INSERT ON v1 FOR EACH ROW SET @a:=1 ;ERROR HY000: 'test.v1' is not BASE TABLERENAME TABLE v1 TO v2;RENAME VIEW v2 TO v1;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 v2 TO v1' at line 1ALTER TABLE v2 RENAME AS v1;ALTER VIEW v1 RENAME AS v2;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 'RENAME AS v2' at line 1DROP TABLE IF EXISTS t1, t2 ;DROP VIEW IF EXISTS v1 ;DROP VIEW IF EXISTS v2 ;CREATE TABLE t1 ( f1 DATE, f2 BLOB, f3 DOUBLE );CREATE VIEW v1 AS SELECT f1, f2, f3 FROM t1;ALTER TABLE t1 ADD PRIMARY KEY(f1);ALTER TABLE v1 ADD PRIMARY KEY(f1);ERROR HY000: 'test.v1' is not BASE TABLEALTER VIEW v1 ADD PRIMARY KEY(f1);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 'ADD PRIMARY KEY(f1)' at line 1CREATE INDEX t1_idx ON t1(f3);CREATE INDEX v1_idx ON v1(f3);ERROR HY000: 'test.v1' is not BASE TABLEDROP TABLE t1;DROP VIEW v1;Testcase 3.3.1.3 + 3.1.1.4 --------------------------------------------------------------------------------DROP VIEW IF EXISTS v1 ;CREATE VIEW v1 or REPLACE AS Select * from tb2 my_table limit 50;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 'or REPLACE AS Select * from tb2 my_table limit 50' at line 1CREATE VIEW v1 WITH CASCADED CHECK OPTION AS Select *from tb2 my_table limit 50;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 'WITH CASCADED CHECK OPTION AS Select *from tb2 my_table limit 50' at line 1CREATE VIEW v1 WITH LOCAL CHECK OPTION AS Select *from tb2 my_table limit 50;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 'WITH LOCAL CHECK OPTION AS Select *from tb2 my_table limit 50' at line 1SELECT * FROM tb2 my_table CREATE VIEW As v1 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 'CREATE VIEW As v1 limit 100' at line 1CREATE or REPLACE VIEW v1 Select f59, f60from test.tb2 my_table where f59 = 250 ;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 f59, f60from test.tb2 my_table where f59 = 250' at line 1CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH CASCADED CHECK OPTION;DROP VIEW v1;REPLACE OR CREATE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH 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 'OR CREATE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH CASCADED CHECK ' at line 1CREATE OR REPLACE VIEW v1 SELECT AS F59, F60FROM test.tb2 my_table WITH 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 'SELECT AS F59, F60FROM test.tb2 my_table WITH CASCADED CHECK OPTION' at line 1CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table CASCADED WITH 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 WITH CHECK OPTION' at line 2CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH CASCADED OPTION 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 'OPTION CHECK' at line 2CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table CHECK OPTION WITH CASCADED;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 'CHECK OPTION WITH CASCADED' at line 2CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTIONAS SELECT F59, F60 FROM test.tb2 my_table;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 'WITH CASCADED CHECK OPTIONAS SELECT F59, F60 FROM test.tb2 my_table' at line 1CREATE OR REPLACE AS SELECT F59, F60FROM test.tb2 my_table VIEW v1 WITH 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 'AS SELECT F59, F60FROM test.tb2 my_table VIEW v1 WITH CASCADED CHECK OPTION' at line 1CREATE OR REPLACE AS SELECT F59, F60FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1;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 F59, F60FROM test.tb2 my_table WITH CASCADED CHECK OPTION VIEW v1' at line 1REPLACE OR CREATE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH LOCAL 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 'OR CREATE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH LOCAL CHECK OPT' at line 1CREATE OR REPLACE VIEW v1 SELECT AS F59, F60FROM test.tb2 my_table WITH LOCAL 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 'SELECT AS F59, F60FROM test.tb2 my_table WITH LOCAL CHECK OPTION' at line 1CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table LOCAL WITH 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 'LOCAL WITH CHECK OPTION' at line 2CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table WITH LOCAL OPTION 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 'OPTION CHECK' at line 2CREATE OR REPLACE VIEW v1 AS SELECT F59, F60FROM test.tb2 my_table CHECK OPTION WITH LOCAL;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 'CHECK OPTION WITH LOCAL' at line 2CREATE OR REPLACE VIEW v1 WITH CASCADED CHECK OPTIONAS SELECT F59, F60 FROM test.tb2 my_table;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 'WITH CASCADED CHECK OPTIONAS SELECT F59, F60 FROM test.tb2 my_table' at line 1CREATE OR REPLACE AS SELECT F59, F60FROM test.tb2 my_table VIEW v1 WITH LOCAL 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 'AS SELECT F59, F60FROM test.tb2 my_table VIEW v1 WITH LOCAL CHECK OPTION' at line 1CREATE OR REPLACE AS SELECT F59, F60FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1;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 F59, F60FROM test.tb2 my_table WITH LOCAL CHECK OPTION VIEW v1' at line 1Drop table if exists t1 ;CREATE table t1 (f1 int ,f2 int) ;INSERT INTO t1 values (235, 22);INSERT INTO t1 values (554, 11);CREATE or REPLACE view v1 as (Select from f59 tb2)Union ALL (Select from f1 t1);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 f59 tb2)Union ALL (Select from f1 t1)' at line 1CREATE or REPLACE view v1 as Select f59, f60from tb2 by order f59 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 'by order f59 limit 100' at line 2CREATE or REPLACE view v1 as Select f59, f60from tb2 by group f59 ;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 'by group f59' at line 2Testcase 3.3.1.5 --------------------------------------------------------------------------------DROP VIEW IF EXISTS v1 ;CREATE VIEW v1 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 'SELECT * FROM tb2 limit 100' at line 1CREATE v1 AS 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 'v1 AS SELECT * FROM tb2 limit 100' at line 1VIEW v1 AS 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 v1 AS SELECT * FROM tb2 limit 100' at line 1CREATE VIEW v1 AS SELECT 1;DROP VIEW v1;VIEW v1 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 'VIEW v1 AS SELECT 1' at line 1CREATE v1 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 'v1 AS SELECT 1' at line 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?