diff options
author | evgen@moonbone.local <> | 2005-07-18 19:37:42 +0400 |
---|---|---|
committer | evgen@moonbone.local <> | 2005-07-18 19:37:42 +0400 |
commit | e75e566469d95d2dfdb02067e27fd0993df44341 (patch) | |
tree | 8555a1df98205cd318b5558085b136463a640782 /mysql-test/r/update.result | |
parent | 0fda7038f9e474675d0fd88650e68508f4b09ceb (diff) | |
parent | 52569ad519f8357473688f787f435916b889c6fb (diff) | |
download | mariadb-git-e75e566469d95d2dfdb02067e27fd0993df44341.tar.gz |
Merge moonbone.local:/work/mysql-4.1-bug-11868
into moonbone.local:/work/mysql-5.0-bug-11482
Diffstat (limited to 'mysql-test/r/update.result')
-rw-r--r-- | mysql-test/r/update.result | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/r/update.result b/mysql-test/r/update.result index b0055346d61..42fb8064044 100644 --- a/mysql-test/r/update.result +++ b/mysql-test/r/update.result @@ -240,3 +240,14 @@ update t1, t2 set t1.a = t2.a where t2.b = t1.b; show warnings; Level Code Message drop table t1, t2; +create table t1(f1 int, f2 int); +create table t2(f3 int, f4 int); +create index idx on t2(f3); +insert into t1 values(1,0),(2,0); +insert into t2 values(1,1),(2,2); +UPDATE t1 SET t1.f2=(SELECT MAX(t2.f4) FROM t2 WHERE t2.f3=t1.f1); +select * from t1; +f1 f2 +1 1 +2 2 +drop table t1,t2; |