mysqlselectsql 已知id的值,比如int pId[100]; CString sql;sql.Format("select * from table_name where id!=%d and id!=%d and id!=%d .....",pId[0],pId[1],pId[2],.....);难道是这样写吗?