首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

怎么将这三句话合并

2012-12-23 
如何将这三句话合并?in sqlite:create table temp as select *from quote where code00001and date20

如何将这三句话合并?
in sqlite:
create table temp as select *  from quote where code='00001'and date='20101025' ; 
alter table temp add lin  ;
update temp set lin=200    where code='00001'; 

请问,上面这三句话如何合并成一句简洁的表达?
[最优解释]

create table temp as 
select *,200 as  lin from quote 
where code='00001'and date='20101025' ;

热点排行