update tablename set colum1='',colnum2=''
go

解决方案 »

  1.   

    if length(query.field('csd2').AsString)=0 then
        edit2.text:=''
      

  2.   

    feifa(孤程) 
    你回些什么哟!与update有什么关系,我现在是要从网络数据库取得数据显示到客户Form的edit12框内。但我去取的数据是NULL值。
    NULL字段值怎么来的,我也不知道,哪些老的数据库转换过来就是这种情况,各位高手,请指点!
      

  3.   

    if Query.FieldByName('csd2').IsNull then
      Edit12.Text := ''
      

  4.   

    我想应该如下较好:
    if query.fieldValues['csd2'] is NULL then
           edit12.text:=''
    好运!
      

  5.   

    if query.fieldValues['csd2'].isNull then
        edit12.text:=''
     else
        edit12.text:=query.fieldValues['csd2'].asstring;
      

  6.   

    forgot2000(忘记2000年)
    没有query.field这个写法呀!你帮我试一试呀?
      

  7.   

    我想知道在DELPHI中,有没有函数把Memo中的信息以每行为单位读出内容呢,或者是MEMO 中有无属性完成此功能呢?
      

  8.   

    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
    if Query.FieldByName('csd2').IsNull then;
      

  9.   

    刚才有点笔误,范了一个低级错误,呵呵:)
    if length(query.fieldbyname('csd2').AsString)=0 then
        edit2.text:=''
      

  10.   

    zswang(伴水)(* 实践是最好的老师 *) 
    谢谢了!你的
    if Query.FieldByName('csd2').IsNull then
      Edit12.Text := ''
    这种办法解决了!也最简单,我最喜欢,谢谢!
      

  11.   

    数据库返回的NULL是一个Variant,用IsNull可能有问题。
    可以这样:if VarIsNull(Query.FieldByName('csd2')) then
      Edit12.Text := ''