select count(*) from $(table) where Name='Edward'  不就行了吗?
到底想问什么?

解决方案 »

  1.   

    SQL判断谓词如下
    EXIST select name from $(table) where name='Edward'
    然后你可以将这个谓词加在别的where子句中
      

  2.   

    SQL="Select name from tablename where name='Edward'";
    Recordset rs=Execute SQL;
    if rs.RecordCount==0 
    ...
      

  3.   

    最简单的方法是用try:把Name字段设为主键,在更改数据时try,最简单try
        {update your data}
        ...... 
    except
        showmessage('重复!');
    end;
      

  4.   

    问题尚未解决,请诸位高手移驾:SQL问题,急!
      

  5.   

    就是这样的:
    try
    更新数据的程序,例如:next post等;
    except
    错误处理代码
    end;
    你要在数据库中把这一个字段定义为primary key,如果是这样的话,数据库会自动保证不会重复,如果你更新重复的数据,就会抛出异常,由except后
    的代码处理!