case 1. select into 语法
现在有表
tablea
(
cola int ,
colb varchar(20)
)
要把tablea中满足条件(cola <100)的记录生成新的表tableb。
在ms sqlserver 可以直接用select into语法:
select * into tableb
where cola <>
在oracle中语法如下:
create table tableb
as
(
select * from tablea
where cola <100)
No comments:
Post a Comment