update tablename set colum1='',colnum2=''
go
go
解决方案 »
- 这个SQL语句怎么写
- modem拨号,远程文件传输问题,急!!!!!!!!!!
- 请问在reportbuilder报表中如何实现每打印出一条数据就更新数据库中的对应数据
- quickreport里的Tqrmemo控件如何自动换行?
- 一个应聘考试的题目,要求明天将代码带去,并说明思路
- 用EncodeDate出错在线等待!
- DELPHI通过ODAC执行存储过程传递包括ASCII=0的字符串参数好像有问题!!!
- 如何使窗体右上角的的"X"按扭变成灰色?即不可用
- 关于dbgrid,dbgrideh,dxDBGrid等数据显示控件的一个问题。。。
- 请大家谈谈InternetExpress和WebSnap的使用心得
- 为什么BINDLAYER后自动生成的DATASET的VALUE是空(NULL)的?
- 很久了!无人问津的问题?
edit2.text:=''
你回些什么哟!与update有什么关系,我现在是要从网络数据库取得数据显示到客户Form的edit12框内。但我去取的数据是NULL值。
NULL字段值怎么来的,我也不知道,哪些老的数据库转换过来就是这种情况,各位高手,请指点!
Edit12.Text := ''
if query.fieldValues['csd2'] is NULL then
edit12.text:=''
好运!
edit12.text:=''
else
edit12.text:=query.fieldValues['csd2'].asstring;
没有query.field这个写法呀!你帮我试一试呀?
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 length(query.fieldbyname('csd2').AsString)=0 then
edit2.text:=''
谢谢了!你的
if Query.FieldByName('csd2').IsNull then
Edit12.Text := ''
这种办法解决了!也最简单,我最喜欢,谢谢!
可以这样:if VarIsNull(Query.FieldByName('csd2')) then
Edit12.Text := ''