Commit d4a874f6 authored by unknown's avatar unknown

Merge bk@192.168.21.1:mysql-5.0

into  mysql.com:/d2/hf/common/my50-common

parents 1c48d723 2e99ee90
...@@ -2686,12 +2686,12 @@ View Create View ...@@ -2686,12 +2686,12 @@ View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75) v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select (year(now()) - year(`t1`.`DOB`)) AS `Age` from `t1` having (`Age` < 75)
SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75; SELECT (year(now())-year(DOB)) AS Age FROM t1 HAVING Age < 75;
Age Age
42 43
38 39
SELECT * FROM v1; SELECT * FROM v1;
Age Age
42 43
38 39
DROP VIEW v1; DROP VIEW v1;
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a char(6) DEFAULT 'xxx'); CREATE TABLE t1 (id int NOT NULL PRIMARY KEY, a char(6) DEFAULT 'xxx');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment