在主/从表结构中怎么插入一条记录,删除一条记录最方便
如用代码,代码怎么写,要同时进行(删除/插入)

解决方案 »

  1.   

    不行啊,我用adoquery建立的主从表结构
    在主表中的记录删除,但从表中没有删除
    在sql server中还有从表的记录,但主表
    没有了
      

  2.   

    1 用两句sql语句
    delete 从表 where id = 'a'
    delete 主表 where id = 'a'2 建议用存储过程
    如果在客户端写sql代码,注意使用事务
      

  3.   

    1 用两句sql语句
    delete 从表 where id = 'a'
    delete 主表 where id = 'a'2 建议用存储过程
    如果在客户端写sql代码,注意使用事务
      

  4.   

    1 用两句sql语句
    delete 从表 where id = 'a'
    delete 主表 where id = 'a'2 建议用存储过程
    如果在客户端写sql代码,注意使用事务