public static bool Add(Article NewArticle)
{
if (ifExist(NewArticle)) { return false; }
string sql = string.Format("insert into " + APPCode + ".Article (LoginName,TimeFinger,Content,PostTime,Status,BlackList,WhiteList,Reads,Description,Operator,OperateTime,Checker,CheckTime,CheckResult,CheckOpinion,Memo1,Memo2,Memo3,Memo4,Memo5)values('{0}','{1}',:Content,'{ 3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}','{14}','{15}','{16}','{17}','{18}','{19}')", NewArticle.LoginName, NewArticle.TimeFinger, NewArticle.Content, NewArticle.PostTime, NewArticle.Status, NewArticle.BlackList, NewArticle.WhiteList, NewArticle.Reads, NewArticle.Description, NewArticle.Operator, NewArticle.OperateTime, NewArticle.Checker, NewArticle.CheckTime, NewArticle.CheckResult, NewArticle.CheckOpinion, NewArticle.Memo1, NewArticle.Memo2, NewArticle.Memo3, NewArticle.Memo4, NewArticle.Memo5);
return OracleServers.RunParaSQL(ServerManagers.Oracle.GetOS("1000", APPCode), sql, "Content", NewArticle.Content);
}
感觉是这段代码有问题
:Content
改为{2}
这么混乱的代码怎么看
每个字段你都看看格式对上了没,比如时间的赋值得时间格式,字段大小有没有超,:content应该加上''单引号吧,或者换成{2}
现在还这么写代码,也是服。。。。