您好,欢迎访问一九零五行业门户网

sql update 语法与实例

sql update 语法与实例 在日常使用的数据库教程是一个不断变化的数据存储。在sql是用于修改数据已经在数据库中的更新和删除commands.the更新语句可以更新表格中的一个或多个记录命令。 update table_name set column_name = expression where conditions 实
sql update 语法与实例
在日常使用的数据库教程是一个不断变化的数据存储。在sql是用于修改数据已经在数据库中的更新和删除commands.the更新语句可以更新表格中的一个或多个记录命令。
update table_name
set column_name = expression
where conditions
实例一
update antiqueowners
set address = '77, lincoln st.'
where ownerfirstname= 'jane' and ownerlastname = 'akins'
更新语句可用于在更新的table.this声明一个字段会更新该antiqueowners表简埃金斯地址77,林肯圣..
注:更新不生成结果集。如果你想知道哪些记录将被修改,,首先运行select查询,它使用同样的标准。如果结果令人满意,然后运行更新查询。
实例二
update antiqueowners
set address = '77, lincoln st.', city = 'kirkland', state = 'washington'
where ownerfirstname='jane' and ownerlastname='akins'
其它类似信息

推荐信息