G
gxgxfish0813
Unregistered / Unconfirmed
GUEST, unregistred user!
看起来有点晕!
1 Query1.SQL.Add('select * from tempdata where type='''+edit1.text+'''');
上面写的是select * from tempdata where type='edit1'
2 Query1.SQL.Add('select * from tempdata where type='+edit1.text);
上面写的是select * from tempdata where type=edit1
3 Query1.SQL.Add('select * from tempdata where type='''''+edit1.text+'''''');
上面写的是select * from tempdata where type=''edit1''
我实在搞不懂是怎么回事了
1 Query1.SQL.Add('select * from tempdata where type='''+edit1.text+'''');
上面写的是select * from tempdata where type='edit1'
2 Query1.SQL.Add('select * from tempdata where type='+edit1.text);
上面写的是select * from tempdata where type=edit1
3 Query1.SQL.Add('select * from tempdata where type='''''+edit1.text+'''''');
上面写的是select * from tempdata where type=''edit1''
我实在搞不懂是怎么回事了