点击或拖拽改变大小

SoftSqlOperateExecuteSql 方法 (String, String)

普通的执行SQL语句,并返回影响行数,该方法应该放到try-catch代码块中

命名空间:  HslCommunication.BasicFramework
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static int ExecuteSql(
	string conStr,
	string cmdStr
)

参数

conStr
类型:SystemString
数据库的连接字符串
cmdStr
类型:SystemString
sql语句,适合插入,更新,删除

返回值

类型:Int32
返回受影响的行数
异常
异常条件
SqlException
参见