这个班级功能能正常吗? [英] Can this Class Function Properly?

查看:83
本文介绍了这个班级功能能正常吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我这个类是否能正常运行......我正在使用MS Visual Studio 2005,使用C#。我注意到没有C#论坛,但希望你们熟悉这种语言......提前感谢

展开 | 选择 | 换行 | 行号

解决方案

似乎没有错,除了SQL .....

string sSQL =" select * from" + tablename + tablename + whereclass + groupbyclass;


在sql中两次相同的表名.......


检查一下...



似乎没有错,除了SQL .....

string sSQL =" select * from" + tablename + tablename + whereclass + groupbyclass;


在sql中两次相同的表名.......


检查一下...



我有问题,是的,我的名字不同[tablename1]。


问题是什么时候我尝试使用该类调用函数...例如:

展开 | 选择 | Wrap | 行号


嗯,我想我看看有什么问题,但不知道如何解释它。


你有一个sql函数dbo.Last()

它返回一个结果集,(具有不同列的某些行数),其中一列具有名称GuestLastName。

您可能希望将JUST列为显示成员的列名。

Can anyone tell me if this class will function properly...I''m using MS Visual Studio 2005, using C#. I notice there''s no C# forum but hopefully u guys are familiar with the language...thanks in advance

Expand|Select|Wrap|Line Numbers

解决方案

seems nothing wrong except the SQL.....
string sSQL = "select * from " + tablename + tablename + whereclass + groupbyclass;

same table name twice in the sql .......

check for that...


seems nothing wrong except the SQL.....
string sSQL = "select * from " + tablename + tablename + whereclass + groupbyclass;

same table name twice in the sql .......

check for that...

I have a problem, and yea i named it differently [tablename1].

The problem is when i try calling a function using that class...for example:

Expand|Select|Wrap|Line Numbers


Hmm, I think I see what''s wrong, but not sure how to explain it.

You have an sql function dbo.Last()
It returns a result set, (some number of rows with various columns), one of those columns has the name "GuestLastName".
You would want to put JUST the column name for the display member.


这篇关于这个班级功能能正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆