想要按学号查询数据库中是否包含该数据项 返回bool值 该怎么操作啊
顺便问下
strSQL1="select * from student where code = studentid";
strSQL2.Format("select * from outgrade where code = %s",studentid);
strSQL的值有什么不同啊
顺便问下
strSQL1="select * from student where code = studentid";
strSQL2.Format("select * from outgrade where code = %s",studentid);
strSQL的值有什么不同啊
解决方案 »
- 用CreatePipe创建的匿名管道,如何异步"读取"?
- VS2008重载擦除窗体背景OnEraseBkgnd,会内存泄露?
- OCX 如何返回字符串?
- vc++里远控是如何做到鼠标键盘任务管理器禁用的?
- 拖动菜单栏导致程序崩溃,引起下面一段断言
- ndis怎样将网卡设置为混杂模式?
- 关于CStatusBar的DrawItem
- 这种定义#define one "0x816a2860, 0x5076, 0x11d7, 0x8c, 0x28, 0x0, 0x80, 0xc8, 0x93, 0x9e, 0x42"是如何生成的?
- 请问谁有好的报表设计器的源代码啊?高分奉送,不够可以再加!
- 关于OLEDB的问题。
- Microsoft JET Database Engine error 80004005?
- 急问,这段多线程下载代码有什么问题
strSQL1="select * from student where code = studentid";
strSQL2.Format("select * from outgrade where code = %s",studentid);
strSQL的值有什么不同啊 但从这两句话,没什么区别
第一句是写死了,以后要改变studentid很困难
第二句则可以从参数里传studentid
顺便问下
strSQL1="select * from student where code = studentid";
strSQL2.Format("select * from outgrade where code = %s",studentid);
strSQL的值有什么不同啊 第一句输出为:select * from student where code = studentid
第二句输出为:select * from outgrade where code = studentid变量的值
GetCollection(num);这个语句中 num 是 整型还是 Cstring 类型
返回的是 符合条件的id 的个数 ???????m_pDatabase-> ExecuteSQL(strSQL); 执行数据库有什么作用 啊 看到有些代码有加有些没加