using System;
using System.Data.SqlClient;
namespace ConsoleApplication5
{
class Class
{
public static string connString="Server=(local);uid=sa;pwd=;database=figo";
public static string ConnString
{
get
{
return connString;
}
}
static void Main(string[] args)
{
string str="update a set thickness='6.5' where id='1'";
SqlConnection conn=new SqlConnection(Class.ConnString);
SqlCommand com=new SqlCommand(str,conn);
conn.Open();
com.ExecuteNonQuery();
这里为什么会是抛出异常?????????????????????????
conn.Close();
}
}
}