我如何通过storeprocdure方法来提示用户名是否存在于数据库中 [英] how i conmpare whether username is present in database or not by storeprocdure method

查看:121
本文介绍了我如何通过storeprocdure方法来提示用户名是否存在于数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入值:用户名,用户电子邮件ID,用户联系电话(如果数据库中已经存在电子邮件ID,则更新使用该电子邮件ID注册的名称和联系电话………如果不存在电子邮件ID,请插入所有输入值作为数据库中的新记录)
输出值:布尔值(如果数据库中已经存在电子邮件ID,或者如果给定的电子邮件ID是新的电子邮件,则返回字符串用户已存在",则返回字符串用户插入

Input values: user name, user email id, user contact number (if email id already exists in the database update the name and contact number registered with that email id………if email id doesn’t exist insert all the input values as a new record in to the database)
Output values: Boolean (return string "user already exists" if email id is already there in the db or if the email id given is a new one return a string "user inserted

推荐答案

如果您要张贴作业,至少要使其看起来像您自己尝试做某事!

我们不做您的作业:这是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

自己尝试,或学习魔语:您想要炸薯条吗?"
If you are going to post your homework, at least try to make it look like you have attempted to do something yourself!

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, or learn the Magic Words: "Do you want fries with that?"


同意OriginalGriff.

您之前已多次发布此问题,并且已多次回答.

http://www.codeproject.com/script/Answers/MemberPosts.aspx? tab = questions& mid = 8050527

期望您的要求的确切代码是汤匙喂食"的要求.相反,请参考同一主题的您先前的问题的答案",尝试理解概念并尝试自己实现所需的代码.
Agree with OriginalGriff.

You have posted this questions multiple times before, and it has been answered multiple times.

http://www.codeproject.com/script/Answers/MemberPosts.aspx?tab=questions&mid=8050527

Expecting exact code of your requirement is demand of "spoon feeding". Instead refer Answers to your earlier Questions on the same topic, Try to understand concepts and try to implement code of your requirement by your own.


这篇关于我如何通过storeprocdure方法来提示用户名是否存在于数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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