当前位置: 代码迷 >> 其他数据库 >> 怎么将这三句话合并
  详细解决方案

怎么将这三句话合并

热度:3364   发布时间:2013-02-26 00:00:00.0
如何将这三句话合并?
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' ;
  相关解决方案