数据库更新查询怎么用

大水冲了龙王庙2022-07-09  33

SqlConnectionconn = newsql connection(" SERVER =。;UID = saPWD =萨;数据库= pubs”);sqldata adapter adapter = newsql dataadapter(" SELECT * from sales ",conn);SqlCommandBuildercmdbuilder = newSqlCommandBuilder(适配器);DataSetds = newDataSet适配器。填充(ds);适配器。UpdateCommand=cmdbuilder。GetUpdateCommand适配器。更新(ds,ds。表[0]。TableName);

转载请注明原文地址:https://juke.outofmemory.cn/read/658835.html

最新回复(0)