Heim >Datenbank >MySQL-Tutorial >fetch-mysql_real_query返回值是1,一直删除失败

fetch-mysql_real_query返回值是1,一直删除失败

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 09:43:001989Durchsuche

fetchresult删除strmysql

<code>        str.Format(_T("%s"),row[0]);        row=mysql_fetch_row(result);        while(ln[i]!=str)        {            CString strSQL;             MYSQL_RES *result;            strSQL.Format("delete from mytable where name=\'%s\'",str);            if(mysql_real_query(&mysql,(char*)(LPCTSTR)strSQL,(UINT)strSQL.GetLength())!=0)            {                AfxMessageBox("删除失败");            }            str.Format(_T("%s"),row[0]);            row=mysql_fetch_row(result);        }</code>
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn