下面用变量怎么不行??
td::string m_pasw = "luozhi";
std::string usSQL = m_ConnMysql->SprintSQL( "select * from ss_user where `name` = '%s' and m_user ");这样子又可以啊.....
std::string usSQL = m_ConnMysql->SprintSQL( "select * from ss_user where `name` = 'luozhi'");??????????
td::string m_pasw = "luozhi";
std::string usSQL = m_ConnMysql->SprintSQL( "select * from ss_user where `name` = '%s' and m_user ");这样子又可以啊.....
std::string usSQL = m_ConnMysql->SprintSQL( "select * from ss_user where `name` = 'luozhi'");??????????
另外你的string什么时候替换的%s[align=center]==== 思想重于技巧 ====
[/align]
std::string usSQL = m_ConnMysql->SprintSQL( "select * from ss_user where name = '%s'", m_user );