本文介绍了整数值的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好, 这是c#代码,j1报价中的问题。 请帮忙。 for ( int j1 = 0 ; j1< y; j1 ++) { con.Open(); 使用(SqlCommand command = new SqlCommand( alter table [empmaster] add [td [' + j1 + ']] varchar(50)默认值0 NOT NULL)) { command.Connection = con; command.ExecuteNonQuery(); } } 解决方案 for ( int j1 = 0; j1< y; j1 ++ ) { con。 Open (); 使用(SqlCommand command = new SqlCommand( alter table [empmaster] add [td + j1 + ] varchar(50)默认值0 NOT NULL )) { command.Connection = con; command.ExecuteNonQuery(); } } Hello,this is c# code , the problem in the quotations for j1 .please help .for (int j1=0;j1<y;j1++) { con.Open(); using (SqlCommand command = new SqlCommand("alter table [empmaster] add [td['"+j1+"']] varchar(50) default 0 NOT NULL")) { command.Connection = con; command.ExecuteNonQuery(); } } 解决方案 这篇关于整数值的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!