主题:单引号还是双引号
triumph
[专家分:160] 发布于 2006-06-17 10:17:00
str:='select basic_info.xh,xm,bj,party_info.qzmm from basic_info,party_info where basic_info.xh=party_info.xh and party_info.qzmm=[color=FF0000]入党积极分子[/color] ';
入党积极分子是个常量,那应该加单引号还是双引号啊?
回复列表 (共3个回复)
沙发
hanwb2002 [专家分:1340] 发布于 2006-06-17 11:03:00
如果是delphi的话,就是这样
str:='select basic_info.xh,xm,bj,party_info.qzmm from basic_info,party_info where basic_info.xh=party_info.xh and party_info.qzmm=''入党积极分子'' ';
板凳
风鼠 [专家分:380] 发布于 2006-06-17 18:19:00
应该是个双引号才对。
3 楼
nepenthe [专家分:460] 发布于 2006-06-17 21:01:00
单引号,连着两个。
我来回复