public string retrieveScheduleById(int id)
{
string sHql = " select p from Schedule p.ScheClasstype ";
sHql += " where p.SCH_EMPCODE='" + id + "'";
return control.GetClassType(sHql).ToString();
}Schedule 这个是表名, p.ScheClasstype ,p.SCH_EMPCODE 是表的字段 我想实现 根据传来的id 返回p.ScheClasstype这个字段。 急!!!在线等!!!
{
string sHql = " select p from Schedule p.ScheClasstype ";
sHql += " where p.SCH_EMPCODE='" + id + "'";
return control.GetClassType(sHql).ToString();
}Schedule 这个是表名, p.ScheClasstype ,p.SCH_EMPCODE 是表的字段 我想实现 根据传来的id 返回p.ScheClasstype这个字段。 急!!!在线等!!!
解决方案 »
- c#点击gridview中hyperlinkfield列中的一行,怎么得到那一行的值?(那一行的其中一个值也可以。)
- 关于给DataGrid中的Combobox绑定数据源的问题
- 跪求:visual studio 2005 视频教程(刚入门)
- 录制视频文件
- 怎么求系统运行的时间?
- .net 查询 xml
- CSDN上的兄弟们,C#做的中小企业管理软件已经A发布了,欢迎您来测试
- 关于发布程序,如何精简.Netframwork 有工具么,安装一定需要IE 5.1以上么,能不能最小安装?
- PerformanceCounterCategory.GetCategories(strMachineName) Access Denied
- 急!怎样禁止浏览指定的网页?
- 求助各位大侠一个问题!
- VS2010中如何给窗体中添加GIF图片文件
sHql += " where p.SCH_EMPCODE='" + id + "'";
是不是因为少了逗号 但是我添加逗号 还是不行 where条件 没执行 还是查出所有数据。。