首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

windows窗体应用程序update语法有关问题

2012-04-23 
windows窗体应用程序update语法问题windows窗体应用程序。update 语句:string upstr update 学生考勤信

windows窗体应用程序update语法问题
windows窗体应用程序。

update 语句:
string upstr = "update 学生考勤信息 set grade='"grade - 2"',late='"late + 1"' where sequencenum=";
upstr += x;

grade、late、sequencenum均为tinyint型,x为int型。
运行显示grade附近有语法错误。

希望能帮我改正,最好能告诉我这方面的语法规则,不胜感激!

[解决办法]

C# code
string upstr = "update 学生考勤信息 set grade=grade - 2,late=late + 1 where sequencenum="+x;
[解决办法]
string upstr = "update 学生考勤信息 set grade=grade - 2,late=late + 1 where sequencenum="+x;


[解决办法]
探讨
C# code

string upstr = "update 学生考勤信息 set grade=grade - 2,late=late + 1 where sequencenum="+x;

热点排行