在单个函数中插入或更新方法 [英] insert or update method in one single function

查看:65
本文介绍了在单个函数中插入或更新方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个函数中插入或更新方法

我只有一个按钮,只有一个表单,即保存
SaveButton(具有插入功能和编辑功能)
请帮助..

解决方案


试试这个

如何执行两个操作,例如在单个按钮上保存插入和更新 [ ^ ]


选择一个指示器,然后根据更改按钮名称进行操作.

最好的
Gopinath Natarajan


您可以使用sql merge语句,如果表中没有数据,它将插入(如果有)它将更新.在merge语句中搜索更多内容可能会为您提供帮助.

insert or update method in one single function

I have one Form With one button only i.e save
SaveButton(both insert+Edit Function)
plz help..

解决方案

Hi,
try this one

how perform both operations such as inserting and updating on a single button save[^]


take one indicator and then do your operation, based on that change the button name..

All the Best
Gopinath Natarajan


you can use sql merge statement in which if data not already in the table it will insert if available it will update.search more on merge statement it may helps you.


这篇关于在单个函数中插入或更新方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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