Query中sql.add()中add对单引号的要求是什么啊...
在使用sql 语句时要注意点什么要求啊.......
如: sql.Add('update table set'+
' no= ''' + edit1.Text+''''+
' where classno='+inttostr(classno)+
' and tel='+inttostr(edit2.tag)+
' and method='''+oldmethod+'''');
什么时候要用''''或''或+
=号后要注意一些什么问题...
在使用sql 语句时要注意点什么要求啊.......
如: sql.Add('update table set'+
' no= ''' + edit1.Text+''''+
' where classno='+inttostr(classno)+
' and tel='+inttostr(edit2.tag)+
' and method='''+oldmethod+'''');
什么时候要用''''或''或+
=号后要注意一些什么问题...
sql.text := 'select * from abc where no = ' + quotedstr(edit1.text) + 'tel = ' + quotedstr(edit2.text);也可以用format 格式
sql.text := format('select * from abe where no = %s and tel = %s',[edit1.text,edit2.text]);