我用vb+ACCSEE编程时听说有几种执行SQL语句的方法具体是哪几种它们各用在什么时候?

解决方案 »

  1.   

    比如
    dim rst as new ado.re...
    rst.open
      

  2.   

    有2种
    1
     rs.open"..........."
     此方法用在SQL查询返回一个数据集的时候
    2
     dim cmd as command
       cmd.commandtext="........"  cmd.execute
      此方法用语不返回数据集,单纯的执行SQL语句
      

  3.   

    简单讲:
    1. select: select 字段
                   from  表
                  where 条件
                  group by 字段
                  order by 字段 asc/desc
    2. insert into 表
             (字段,
              ……)
           values (值,……)
    3. update 表 set 字段 =值
    4. delete from 表 where 条件
      

  4.   

    同意albert521(VB编程王子) ( ) 的做法!我就是这样实现的!