日期:2014-05-18  浏览次数:20879 次

新手問題啦.1分鐘結貼
假如我要新增
SqlCommand   cmd=new   SqlCommand( "這里應該寫什么? ",con);

------解决方案--------------------
sql语句
------解决方案--------------------
sql语句
------解决方案--------------------
把你要执行的SQL语句写进去就可以了。
------解决方案--------------------
SqlCommand cmd=new SqlCommand( "insert into users(id,name) values(1, 'name ') ",con);