作者:你给的未来丶我不要 | 来源:互联网 | 2018-04-25 21:11
已知id的值,比如intpId[100];CStringsql;sql.Format("select*fromtable_namewhereid!%dandid!%dandid!%d.....",pId[0],pId[1],pId[2],.....);难道是这样写吗?
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],.....);
难道是这样写吗?