如何计算删除记录并在文本框中输入值后删除 [英] how to calculate delete records and delete after enter value in textbox

查看:87
本文介绍了如何计算删除记录并在文本框中输入值后删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想计算总删除记录并删除特定记录,例如,如果用户在文本框中输入''raj'',并且在提交按钮页面后将转移到另一页面,并且某些信息应显示在页面上,即总数''Raj''从表中删除并删除''Raj''。请告诉我如何用sql数据库来解决这个问题...

i want to calculate total deleted records and delete particular record, like if user enter ''raj'' in text box and after submitting a button page will transfer to another page and some information should be show on page that is total number of ''Raj'' deleted and delete ''Raj'' from a table. pls tell me how to do this problem with sql database...

推荐答案

如果你正在使用 SQL ExecuteNonQuery [ ^ ]命令删除,该方法返回多少受上次执行的命令影响的行。



如果是一个删除语句,返回值是删除的行数。
If you are using SQL ExecuteNonQuery [^] command to delete, the method returns how many rows affected for the last executed command.

if its a delete statement the return value is the how many rows deleted.


这篇关于如何计算删除记录并在文本框中输入值后删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆