select a as Result from table where b =1 
下一次: select * from table where field = result
你可能要对Result进行一下类型转换。

解决方案 »

  1.   

    SQL Server:
    Declare @a varchar(10)  --類型視情況而定
    SELECT Top 1 @a=a From table where b=1后面就可用@a變量了
      

  2.   

    RS = Connect.Execute(select a as Result from table where b =1,,,,下一次: select * from table where field = Rs!result
    你可能要对Result进行一下类型转换。 
      

  3.   

    我想写在一条SQL语句里,怎么写?
      

  4.   

    select * from table1 where a=(select a from table1 where 条件)
      

  5.   

    select * from table1 where a in select a from table1 where 条件
      

  6.   

    select * from table where table.a in (select a from table1 where bz=1 ) 
    table.a 要和a的结构相同。