在MFC下操作数据库的SQL语句

2025-02-24 05:20:30
推荐回答(2个)
回答1:

Cstring strsql = "...";
m_command->CommandText = (_bsrt_t)strsql;

m_recordest = m_command->Execute(NULL,NULL,adCmdText);

回答2:

select count(*) as num from [User] where UserId =1111 and Pwd = 111111