编译器错误信息: CS0019: 运算符“&”无法应用于“string”和“string”类型的操作数
源错误:
行 22:
行 23: string strsql = "SELECT tybh as 统一编号, mt as 名称, 型号, 测量范围, 准确度, 生产厂家, ccbh as 出厂编号, sybm as 使用部门, ssr as 使用人, 检定周期, yyrq as 有效日期, ABC, bz as 备注 from jgqj"+
行 24: "WHERE tybh LIKE %"&pamra[0]&"% and mt LIKE %"&pamra[1]&"% and ccbh LIKE %"&pamra[2]&"% and sybm LIKE %"&pamra[3]&"% and ssr LIKE %"&pamra[4]&"% and yyrq LIKE %"&pamra[5]&"%" ;
在where 前面加一空格