SqlCommand hlj_command_content=new SqlCommand();
hlj_command_content.Connection=hlj_connection;
hlj_command_content.CommandText="select "+"'+ N_ttitle +'"+" from News where N_id= " + "' + hlj_int_i + '";
把N_ttitle用变量代替就行了,N_ttitle要和数据库列名相同,不然就要出bug!!!
hlj_command_content.Connection=hlj_connection;
hlj_command_content.CommandText="select "+"'+ N_ttitle +'"+" from News where N_id= " + "' + hlj_int_i + '";
把N_ttitle用变量代替就行了,N_ttitle要和数据库列名相同,不然就要出bug!!!