-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
85 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
statement ok | ||
create table t1 (v1 int not null primary key, v2 int not null); | ||
|
||
statement ok | ||
create table t2 (v1 int not null primary key, v2 int not null); | ||
|
||
statement ok | ||
create table t3 (v1 int not null primary key, v2 int not null); | ||
|
||
statement ok | ||
insert into t1 values (1, 1), (4, 6), (3, 2), (2, 1); | ||
|
||
query II rowsort | ||
select * from t1; | ||
---- | ||
1 1 | ||
2 1 | ||
3 2 | ||
4 6 | ||
|
||
statement ok | ||
select * into t2 from t1; | ||
|
||
statement ok | ||
select v2, v1 into t3 from t2 where v2 != 6; | ||
|
||
query II rowsort | ||
select * from t2; | ||
---- | ||
1 1 | ||
2 1 | ||
3 2 | ||
4 6 | ||
|
||
query II rowsort | ||
select * from t3; | ||
---- | ||
1 1 | ||
2 1 | ||
3 2 | ||
|
||
statement ok | ||
drop table t1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters